比方說,我有一個網站example.com劍道UI手機 - 本地視圖顯示刷新頁面空白屏幕
它包含兩個地方意見,「數據庫」和「年」
最初,數據庫視圖被加載。
用戶導航到「年」視圖。
地址欄(至少在Android 2.3的)現在讀example.com#
然後用戶決定刷新頁面無論出於何種原因年份。
地址example.com#年刷新,並用戶空白的白色屏幕迎接。
任何人有任何建議如何處理這種情況?顯然,無論用戶在哪裏查看,如果刷新,我希望它顯示..
謝謝!
更新:
下面是一些代碼來幫助說明我的問題:
HTML:
<div data-role="view" id="Database">
<div data-role="content">
<p><strong>This is the Database view</strong></p>
<a data-role="button" id="databaseButton" href="#Year">Go to Year View</a>
</div>
</div>
<div data-role="view" id="Year">
<div data-role="content">
<p><strong>This is the Year view</strong></p>
<a data-role="button" id="yearButton">Refresh Page</a>
</div>
</div>
腳本:
var app = new kendo.mobile.Application($(document).body, {
initial: "Database"
});
$("#yearButton").click(function() {
// location.reaload();
// cannot simulate page refresh by the user in jsfiddle
// the current browser address is example.com/index.html#Year
// reloading this address produces a blank white screen
// because of the #Year parameter
});
能否請您複製這是的jsfiddle或jsbin所以我們可以幫助解決? –
更新,謝謝伯克! – TAS