1

以下のコードは、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');
},

ありがとう、

4

1 に答える 1