在编译jquery移动代码时,Script标记在Eclipse Phonegap中不起作用

While Compling jquery mobile code,Script tag is not working in Eclipse Phonegap

本文关键字:Eclipse Phonegap 不起作用 jquery 编译 移动 代码 Script      更新时间:2024-02-16

当我编译jquery mobile代码时,脚本标记不起作用,我遗漏了任何代码吗?建议我回答,我的代码已显示在下面。。

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css">
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
</head>
<body>
<div data-role="page">
  <div data-role="header">
    <h1>WELCOME TO MY HOMEAPP</h1>
  </div>
  <div data-role="content">
    <p>Hi Frndz..</p>
  </div>
  <div data-role="footer">
    <h1>USER LOGIN</h1>
  </div>
</div> 
</body>
</html>

确保您的应用程序访问互联网的权限
在config.xml文件中:

    <access origin="*" />

并且在AndroidManifest.xml 中

    <uses-permission android:name="android.permission.INTERNET" />