麻烦在ajax调用本地文件? [英] Trouble in ajax call for local files?

查看:308
本文介绍了麻烦在ajax调用本地文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Window Phone 7应用程序中使用了Phonegap.1.2.0.js。所有与html5和javascripts相关的文件都在名为www的文件夹中。我使用jquery $ .ajax({})调用一个.html文件,它是在www文件夹(像在同一个文件夹或本地),并给出错误访问被拒绝的ajax调用。

I have used Phonegap.1.2.0.js in Window Phone 7 application. All files related html5 and javascripts are in folder called www. I have make an ajax call using jquery $.ajax({}) that call a .html file which is in www folder ( like in same folder or in local ) and it gives error "Access Denied".

推荐答案

这是Windows手机上安全策略的一个已知问题:

It's a known problem with the security policy on windows phones:

https://github.com/phonegap/phonegap-wp7/issues/17

这篇关于麻烦在ajax调用本地文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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