您的问题是在HTML5中使用Visual Studio工具为apache cordova开发phonegap应用程序 www.visualstudio/en-us/features/cordova-vs.aspx 当我调试应用程序时出错的错误是
Hello my problem is to develop phonegap application in HTML5 with the Visual Studio tools for apache cordova www.visualstudio/en-us/features/cordova-vs.aspx the error write when I debug application is
Ripple ::环境温暖(Tea,Earl Gray,Hot。)ripple.js (37,13099)
Ripple :: Environment Warming Up (Tea. Earl Gray. Hot.) ripple.js (37,13099)
主线程上的同步XMLHttpRequest不推荐使用,因为它对最终用户的体验有不利影响。如需更多帮助,请查看 xhr.spec.whatwg/ 。 > ripple.js(50,28958)
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check xhr.spec.whatwg/.> ripple.js (50,28958)
无法加载资源:服务器响应状态为404 (找不到)ripple.js
Failed to load resource: the server responded with a status of 404 (Not Found) ripple.js
感谢您的帮助
推荐答案可能是答案的一部分:对于第二个错误(未找到404),对我有用的是将 config.xml 复制到根路径
May be part of the answer: For the second error (not found 404), what worked for me is to copy config.xml to the root path (where your source code is).
对于第一个错误(同步 XMLHttpRequest ,这对于模拟不重要)过程,但您可能想要查看清除控制台日志)只需编辑ripple.js
For the first error (synchronous XMLHttpRequest, which is not important for the emulating process, but you may want to see a "clear" console log) just edit ripple.js
[MAIN_DRIVE]:\Users\[YOUR_USER]\AppData\Roaming\npm\node_modules\ripple-emulator\pkg\hosted在仿真器提示的行中,查找xhr请求。 更改
In the line that the emulator complains about, look for the xhr request. Change
xmlHttp.open("GET", utils.appLocation() + fileName, false);到
xmlHttp.open("GET", utils.appLocation() + fileName, true);完成后,希望这有帮助。 这些错误与方法无关。
and you are done, Hope this helps. These errors are not related by the way.
更多推荐
无法加载资源:服务器响应状态为404(找不到)ripple.js
发布评论