我在使用jQuery mobile(1.0.1。)的Windows Phone 7.5上试用PhoneGap 1.4。 基本导航工作,不幸的是我似乎无法得到警报工作。无论是alert(“string”)还是PhoneGap的navigator.notification.alert(message,alertCallback,[title],[buttonName]);都不会给我任何回应PhoneGap测试信息显示正常,这是我尝试拨打电话的方式它:alert()不能在Windows Phone上使用PhoneGap
function init()
{
document.addEventListener("deviceready",onDeviceReady,false);
}
function onDeviceReady()
{
document.getElementById("welcomeMsg").innerHTML += "PhoneGap is ready!";
alert('test');
navigator.notification.alert(
'You are the winner!', // message
alertDismissed, // callback
'Game Over', // title
'Done' // buttonName
);
}
http://groups.google.com/group/phonegap/browse_thread/thread/e3053e90aaf4890b – ghostCoder 2012-02-16 12:45:35
谢谢,就是这样。奇怪的是,navigator.notification.alert()的所有选项如上所述(从phonegap主页复制)不起作用... – Thomas 2012-02-16 12:58:21
嗯,它是奇怪的。接受n关闭然后 – ghostCoder 2012-02-16 13:24:28