我正在爲使用jQuery Mobile的Windows Phone 7開發Web應用程序。Windows Phone 7中的頁面導航Web App
我想導航到一個頁面,說index.html到sample.html。
function sample()
{
window.location.href = "Sample.html";
navigator.notification.alert("Navigated);
}
它工作正常。
但是,當加有一個查詢字符串 「sample.html?ID = 123123」
function sample()
{
window.location.href = "Sample.html?id=123123";
navigator.notification.alert("Navigated");
}
此導航不起作用。
任何人都可以請guide.Any其他導航方法與查詢字符串也歡迎。
不工作這意味着它ð沒有導航,或者id屬性是未定義的? – 2012-01-17 07:28:54
@willmel該頁面並不是實例化頁面。 – siva 2012-01-17 08:34:13