我正在使用 Visual Studio 2012 创建示例 Windows 8 Phone 应用程序。
从我选择的“创建新项目”选项中,
Windows > Windows Phone HTML5 应用程序
我还在项目中添加了一个 jquery.min.js 文件,如下所示。
下面是我用 index.html 编写的代码...
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="/html/css/phone.css" />
<script type="text/javascript" src="/html/js/jquery.min.js" ></script>
<title>Windows Phone</title>
<script type="text/javascript">
$("#dynamic-box").text("hey !");
</script>
</head>
<body>
<div>
<p>MY APPLICATION</p>
</div>
<div id="dynamic-box"></div>
</body>
</html>
但无论我尝试什么,我的 jquery 代码都无法正常工作。是否有其他方法可以在 Windows 8 Phone 应用程序中编写 jquery?
请帮助我。