Jquery mobile 在移动浏览器中使用require.js-cross-origin request组织应用程序的模板

Jquery mobile 在移动浏览器中使用require.js-cross-origin request组织应用程序的模板,jquery-mobile,backbone.js,requirejs,Jquery Mobile,Backbone.js,Requirejs,我正在使用phonegap、jqm、下划线和主干构建一个应用程序。为了避免在index.html中下划线.js使用我的所有模板,我想使用require.js 在本地计算机上测试时,我遇到以下错误: XMLHttpRequest cannot load file:///[...]loginTemplate.html. Cross origin requests are only supported for HTTP. 移动设备上的web容器如何处理这些模板文件请求?这被视为http请求还是文件请

我正在使用phonegap、jqm、下划线和主干构建一个应用程序。为了避免在index.html中下划线.js使用我的所有模板,我想使用require.js

在本地计算机上测试时,我遇到以下错误:

XMLHttpRequest cannot load file:///[...]loginTemplate.html. Cross origin requests are only supported for HTTP.

移动设备上的web容器如何处理这些模板文件请求?这被视为http请求还是文件请求?

似乎请求被转移到移动电话上的http请求