2015102201

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

时间: 2024-11-07 23:44:56

2015102201的相关文章