遇到一个大问题 使用phonegap做App开发 在js做ajax的时候会报错跨域请求问题
出错的js写法如下
<html>
<body>
//****************
</body>
<script></script>//这里引入script会出现跨域请求的问题
</html>
正常运行的JS写法
<html>
<body>
//****************
</body>
</html>
<script></script>//这里引入JS就不会出现跨域请求问题
0 个回复