This morning also es6 learning
With the Promise
object, it can process the asynchronous operation to synchronous operation expressed,
Mainly listening, Promise will certainly be returning state. Return function resolved, rejected
proxy override the default operation, redefining some of the default method of the object
Can all be put regular expressions,
value.match(/[0-9]/g).join('')
.replace(/(\d{3})(\d{4}(\d{4}/,'$1-$2-$3');
There is a demand: but our input format is different, but we want to format the output if the uniform
How can I do, I use a proxy? The telephone number input format 135 4,848,787,813,678,448,756 135-595-85845 output is
First to the first output is 13,548,487,878 13,678,448,756 then in a unified format
proxy set get tartet key value