Windows Phone 7和8的PhoneGap +角引导过程中死亡 [英] Windows Phone 7 and 8 with PhoneGap + Angular dies during bootstrapping

查看:144
本文介绍了Windows Phone 7和8的PhoneGap +角引导过程中死亡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • Windows Phone 7或8

  • 的PhoneGap 3

  • AngularJS 1.2

我已经使用了在iOS和Android的伟大工程AngularJS一个PhoneGap的应用程序,但我有得到它在Windows Phone 7和8的工作有问题。

I have a PhoneGap app using AngularJS that works great on iOS and Android, but I'm having a problem getting it to work on Windows Phone 7 and 8.

在应用程序启动正常,我看到我的index.html页面(这在我的情况下,仅仅是一个载入画面)。源文件被加载,我的pre-启动code运行正常。

The app starts fine and I see my index.html page (which in my case is just a loading screen). Source files are loaded and my pre-boot code is running fine.

然后停止,什么都不会发生。

Then it stops and nothing happens.

我已经散落在整个code的console.log的消息,我看到它到达 angular.bootstrap()的点,然后死去。我没有足够的具有角熟悉,知道下一步该怎么做还是怎么调试这进一步追查什么绝对的问题code可能。内部自举()的开始DI的迷宫调用所以code变为线性要少得多。

I've littered "console.log" messages throughout the code and I see it gets to the point of angular.bootstrap() and then dies. I'm not familiar enough with angular to know what to do next or how to debug this further to track down what the absolute problem code might be. Inside of bootstrap() begins the maze of DI calls so the code becomes much less linear.

我在控制台中看到这个错误,但不知道这意味着什么或如何解决它:

I do see this error in the console but have no idea what it means or how to fix it:

An exception of type 'System.NotSupportedException' occurred in Microsoft.Phone.ni.dll and wasn't handled before a managed/native boundary

没有其他错误或任何输出将被记录到控制台。我尝试了10秒一个的setTimeout拖延我所有的引导code和前 angular.bootstrap始终报告该错误()被调用,所以不知道它是否有关连。

No other errors or any output is logged to the console. I tried delaying all of my bootstrap code by 10 seconds with a setTimeout and that error is always reported before angular.bootstrap() is called, so I don't know if it is even related.

另外值得注意的,我试过在桌面上的IE浏览器应用程序,它工作正常那里。

Also worth noting that I've tried the app in IE on the desktop and it works fine there.

所以我的问题是:我如何去调试这

So my question is: How do I go about debugging this?

推荐答案

我不确定WP7 / 8,但如果它遵循Windows 8的模式尝试angular.js之前添加的JQuery 2.0

I am unsure of WP7/8 but if it follows Windows 8 pattern try adding JQuery 2.0 before angular.js

<一个href=\"http://net.tutsplus.com/tutorials/javascript-ajax/building-windows-store-applications-with-jquery-2-0/\" rel=\"nofollow\">http://net.tutsplus.com/tutorials/javascript-ajax/building-windows-store-applications-with-jquery-2-0/

这篇关于Windows Phone 7和8的PhoneGap +角引导过程中死亡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆