标签:script rom new get 时间 on() fun var 最新
var b = null;
var data = 0;
function a() {
var t = b = new Date().getTime();
data += 1;
return new Promise(function(r) {
setTimeout(function() {
r(t, data);
}, 2000);
})
}
function p() {
a().then((t, d) => {
if (t === b) {console.log(d)}
})
}
标签:script rom new get 时间 on() fun var 最新
原文地址:https://www.cnblogs.com/youyouluo/p/12043504.html