アプリの起動時に、JavaScript 関数を実行したいと考えています。
- data-page="index" を持ち、以下の関数を使用して、インデックスを使用してこれに取り組もうとしました:
myApp.onPageInit('index', function (page) {
// "page" variable contains all required information about loaded and initialized page
})
ただし、アプリケーションを起動したばかりの場合、この機能は機能しません。