下面的代码来自PhoneGap 3.0生成的index.js,我的问题是为什么它没有被设计成允许我们像往常一样使用this.receivedEvent(并获取事件对象作为参数)。
// The scope of 'this' is the event. In order to call the 'receivedEvent'
// function, we must explicity call 'app.receivedEvent(...);'
onDeviceReady: function() {
app.receivedEvent('deviceready');
},
谢谢,