【发布时间】:2016-01-06 16:57:05
【问题描述】:
我正在 VS2015 上开发 cordova appache 应用程序。我想在我的应用程序中使用 jquery,就像在 web 应用程序中使用它一样。我试图做到,但它不起作用。这是我的代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>test</title>
<!-- test references -->
<link href="css/index.css" rel="stylesheet" />
</head>
<body>
<p>Hello, your application is ready!</p>
<!-- Cordova reference, this is added to your app when it's built. -->
<script src="cordova.js"></script>
<script src="scripts/platformOverrides.js"></script>
<script src="scripts/index.js"></script>
</body>
</html>
<script>
$(document).ready(function () {
alert("test!");
});
</script>
请指教。
【问题讨论】:
标签: javascript jquery html cordova