使用jQuery Mobile的功能,我想,當用戶打開一個頁面警報(「」);使用的PhoneGap和jQuery
<div data-role="page" id="page3">
<div data-role="header">
<h1>Page Three</h1>
</div>
<div data-role="content">
<script>alert('How are you');</script>
</div>
<div data-role="footer">
<h4>Page Footer</h4>
</div>
</div>
但上面的代碼顯示了應用程序的啓動警報,並顯示警告,當我打開網頁就什麼也沒做。在此先感謝您的幫助。
打開頁面?你什麼意思? –