0
A
回答
1
確保您在等待「deviceready」事件:
function load() {
document.addEventListener("deviceready", onDevReady, false);
}
function onDevReady() {
document.addEventListener("backbutton", backKeyDown, false);
}
function backKeyDown() {
console.log("PhoneGap Ready!");
}
相關問題
- 1. 與<function>
- 2. 的Rails搞亂我的代碼以「<<<<<<< HEAD」
- 3. 什麼是我的檔案中的「<<<<<<< head」?
- 4. <function>不是<class>
- 5. 的$(document).WIDTH(),取決於當它調用<code>$(document).width();</code>內<code>$(window).load(function(){})</code>或<code>$(document).ready(function(){})</code>我得到了不同的結果,當我從內<code>$(window).resize(function(){})</code><br /> 值調用它的時候叫做
- 6. git「<<<<<<< HEAD」
- 7. 「<<<<<<< HEAD」模板
- 8. Heredoc <<<或<<?
- 9. 當我點擊<<按鈕;它給ArrayIndexOutOfBounds異常
- 10. 如何在點擊時從android按鈕調用角度函數?點擊一個按鈕</p> <pre><code>webView = (WebView) findViewById(R.id.webView1); webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl("http://www.foobar.com/test"); </code></pre> <p>從Android的我想叫寫成角的函數:
- 11. 凡在Laravel我用笨的時候我在我的模型功能,如</p> <pre><code>public function GetArticlesFormatted($inactive = FALSE) </code></pre> <p>,然後在我的控制,我可以有</p> <pre><code>$articles->GetArticlesFormatted(true); </code></pre> <p>等等處理數據
- 12. 不能將持久<Function>添加到向量中<Persistent <Function>>
- 13. 爲什麼{} <function(){}?
- 14. 似乎無法找到我創建了一個CKEitor對話框下面的代碼</p> <pre><code><textarea name="content_html" id="editor1" rows="6" cols=""></textarea> <script> window.onload = function() { CKEDITOR.replace('editor1'); }; </script> </code></pre> <p>CKEditor的
- 15. 什麼是Swift上的+++和<<<?
- 16. operator <<:std :: cout << i <<(i << 1);
- 17. 使用>>,>,> |,||,| <,<,<<,<<
- 18. 超載<<我
- 19. 分裂長單的話多行,而不在<code>$(document).ready(function(){...}</code>打破我的網頁上
- 20. 將std :: function <void(Derived *)>轉換爲std :: function <void(Base*)>
- 21. 包含std :: function <T()>和std :: function <T(int)>
- 22. 什麼意思的符號在java中「<<<」「<< =」「<<」
- 23. << <<超載
- 24. github增加<<<<<<< HEAD
- 25. 什麼手段<<<在PHP
- 26. 調用一個函數,如:<function><statement>
- 27. html中的可訪問性:重點和說話?</p> <pre><code><body> <p><strong>IMPORTANT:</strong> This is desc text.</p> ... </body> </code></pre> <p>我想重點,講:
- 28. 的PhoneGap:什麼是我一直在使用<strong><em>jQuery Mobile的</em></strong>實施<strong>PhoneGap的應用</strong>爲<strong>iPhone</strong>後在手機縫隙應用到PhoneGap的檢索從sqlite的數據,
- 29. 怎麼了SVN把「<<<<<<<.mine」遍佈整個地方?
- 30. Assertion Failed <0 <= i && i < <int> vv.size <>> in unknown function,file src \ matrix.cpp,line 912
是嗎?和?你有什麼問題?錯誤在哪裏?你有什麼嘗試? – njzk2