无法加载资源:服务器响应状态为404(找不到)ripple.js [英] Failed to load resource: the server responded with a status of 404 (Not Found) ripple.js

查看:3124
本文介绍了无法加载资源:服务器响应状态为404(找不到)ripple.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您的问题是在HTML5中使用Visual Studio工具为apache cordova开发phonegap应用程序
https://www.visualstudio.com/en-us/features/cordova-vs.aspx
当我调试应用程序时出错的错误是

Hello my problem is to develop phonegap application in HTML5 with the Visual Studio tools for apache cordova https://www.visualstudio.com/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不推荐使用
,因为它对最终用户的体验有不利影响。如需
更多帮助,请查看 http://xhr.spec.whatwg.org/ 。 > 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 http://xhr.spec.whatwg.org/.> 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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