5
내 .js 파일에서 .html 파일을 열고 싶습니다. 그래서 나는 $ .mobile.changePage ("file.html")를 사용했다. file.html에는 file.js가 있습니다. 그러나 file.html이 호출 될 때 file.js는 호출하지 않습니다.
미리 알아 두십시오.
first.js
$.mobile.changePage ("file.html");
file.html과
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>jQuery Mobile Framework - Dialog Example</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"/> // Could not imported
<script src="../Scripts/helperArrays.js"/> // Could not imported
<script src="../Scripts/globalVariables.js"/> // Could not imported
</head>
<body>
<div data-role="page">
<div data-role="header" data-nobackbtn="true">
<h1>Vaults</h1>
</div>
<!-- <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">My Vault</a>
</div> -->
<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">List of Items</li>
</ul>
</div><!-- /content -->
</div>
</body>
</html>
안녕하세요 .. 어떻게 외부 JS를 호출 할 수 있습니다이 훨씬 더 관리 할 수 있습니까? – Finder
jquerymobile 형식으로 JS를 작성해야합니다. 모든 페이지에서 jqm과 같이'
관련 문제