Jquerymobile - $.mobile.changepage [英] Jquerymobile - $.mobile.changepage
本文介绍了Jquerymobile - $.mobile.changepage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从我的 .js 文件中打开 .html 文件.所以我使用了 $.mobile.changePage("file.html").在file.html 中有file.js.但是file.js在调用file.html时不会调用.
提前致谢.
first.js
$.mobile.changePage ("file.html");
文件.html
<头><meta charset="utf-8"/><title>jQuery Mobile Framework - 对话框示例</title><link rel="stylesheet" href="jquery.mobile-1.0a2.min.css"/><script src="jquery-1.4.4.min.js"></script><script src="jquery.mobile-1.0a2.min.js"></script><script src="../Scripts/file.js"/>//无法导入<script src="../Scripts/helperArrays.js"/>//无法导入<script src="../Scripts/globalVariables.js"/>//无法导入头部><身体><div data-role="页面"><div data-role="header" data-nobackbtn="true"><h1>保险库</h1>
<!-- <div data-role="content" data-theme="c" id="contentVault"><a href="Views/searchPage.html" data-role="button" data-theme="b">Sample Vault</a><a href="Views/searchPage.html" data-role="button" data-theme="c">我的保险柜</a>
--><div data-role="content" id="content"><ul id="listview" data-role="listview" data-inset="true" data-theme="e" data-dividertheme="b"><li id="listdiv" data-role="list-divider">项目列表</li></div><!--/content -->