您的位置:首页 > 其它

2015102201

2015-10-22 10:52 134 查看
var executerQueue = []
executerQueue.exec = function() {
if (executerQueue.length) {
executerQueue.shift().exec()
}
}

function F1() {
this.exec = function() {
console.log('F1')
}
}

function F2() {
this.exec = function() {
console.log('F2')
}
}
executerQueue.push(new F1())
executerQueue.push(new F2())
executerQueue.exec()
executerQueue.exec()


var gestures = {
a: 'a',
b: 'b'
}
Object.keys(gestures).length






var tid
window.addEventListener('resize', function() {
clearTimeout(tid)
tid = setTimeout(function() {
console.log(1)
}, 300)
}, false);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: