0
我確實使用http://zsprawl.com/iOS/2012/05/navigation-bar-with-nativecontrols-in-cordova/和最新版本的Cordova和Xcode。我在Javascript中找到這個函數,看看下面的內容。鏈接到index.html Javascript/Phonegap
如何鏈接做index.html?
function onLeftNavButton() {
window.location("index.html");
}
window.location("file://www/index.html");
,window.location("file://index.html");
window.location("./index.html")
;不要工作,如果我做window.loction.href
不工作。
如果我做了alert("123");
它工作正常!