cordova-2.0.0.js在使用phonegap的android上不起作用 [英] cordova-2.0.0.js is not working on android using phonegap
本文介绍了cordova-2.0.0.js在使用phonegap的android上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是新的PhoneGap程序员. navigator.notification.alert()在使用phonegap的Android上不起作用.但是它可以在iPhone和WP7上使用.我正在Windows Phone 7中开发此移动应用程序.
感谢您的帮助
I am a new PhoneGap programmer. navigator.notification.alert() has not working on Android using phonegap. But it works on IPhone and WP7. I am developing this mobile app in Windows Phone 7.
Thanks for your help
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Cordova WP7</title>
<link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title"
charset="utf-8" />
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script type="text/javascript">
function doAlert() {
var message = "This is an Alert dialog";
var title = "Attention!";
navigator.notification.alert(message, title);
};
</script>
</head>
<body>
<h1>
Cordova Tests</h1>
<div id="info">
<a href="#" önclick="doAlert()">Click Me</a>
</div>
</body>
</html>
推荐答案
最好将问题提交给作者: ^ ]
You are better off submitting your problem to the authors here : https://issues.apache.org/jira/browse/CB[^]
这篇关于cordova-2.0.0.js在使用phonegap的android上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文