Open ybg555 opened 8 years ago
// 2 3 5 4 1
setTimeout(function() {
console.log(1)
}, 0);
new Promise(function executor(resolve) {
console.log(2);
for( var i=0 ; i<10000 ; i++ ) {
i == 9999 && resolve();
}
console.log(3);
}).then(function() {
console.log(4);
});
console.log(5);
timer() { if (this.time > 0) { this.time--; setTimeout(this.timer, 1000); } },
phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
//判断浏览器缩放比 function detectZoom() { var ratio = 0, screen = window.screen, ua = navigator.userAgent.toLowerCase();