使用Phonegap与WWindows Phone7相关的警报问题 [英] Alert Issue Related To WWindows Phone7 Using Phonegap
本文介绍了使用Phonegap与WWindows Phone7相关的警报问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I'm Developing A windows phone 7 application using Phone gap 2.9.0 version
I just start My App now but The Alert Or Return Confirm Are Not Worked In windows phone emulator.
but Same Code Work Fine In all Browser.
Below It's my Code.
<body>
<input type="button" value="click" onclick="return confirm('are you sure')"; />
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/jQuery v1.10.2 .js"></script>
<script type="text/javascript" >
$(document).ready(function(){
alert("hi");
});
</script>
</body>
Both Alert And Return Confirm Not Worked Plz Provide Me Solution
推荐答案
(document).ready(function(){
alert(hi);
});
< / script >
< / body >
警报和返回确认不起作用Plz提供解决方案
(document).ready(function(){ alert("hi"); }); </script> </body> Both Alert And Return Confirm Not Worked Plz Provide Me Solution
Visual Studio模板PhoneGap,Windows Phone 7版本2.9,默认情况下不包括功能通知。
这是我做的:
1.打开 config.xml
2.添加以下内容
The Visual Studio template of PhoneGap, version 2.9 for Windows Phone 7, did not include feature Notification by default.
Here is what I did:
1. Open the config.xml
2. Add the following
<feature name="Notification">
<param name="wp-package" value="Notification" />
</feature>
3.保存
4.再次运行你的应用程序
3. Save
4. Run your app again
这篇关于使用Phonegap与WWindows Phone7相关的警报问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文