我使用Jquery1.8.2和jQuery移動1.1jQuery Mobile的「加載頁面時出錯」
當我退出按鈕,我必須轉到主頁點擊。我能夠獲得主頁,但在返回主頁之前得到了「Error Loading Page」消息。
的test.html
<body>
<div data-role="page">
<div data-role="header" data-theme="b" >
<h1> Success Page </h1>
<a data-role="button" id="logoutbtn" data-theme="b">Logout</a>
</div><!-- /header -->
<div data-role='content'>
</div>
</div>
</body>
test.js
$(document).ready(function(){
$("#logoutbtn").click(function() {
document.location.href = "Home.html";
});
});
請幫我出這一點。
啊!謝謝你,先生! – trailmax