貌似mui的.ajax() .post()方法不能设置header。
如果有的话,怎么去设置呢?
出现一个
No 'Access-Control-Allow-Origin' header is present on the requested resource.
的异常。~~
貌似mui的.ajax() .post()方法不能设置header。
如果有的话,怎么去设置呢?
出现一个
No 'Access-Control-Allow-Origin' header is present on the requested resource.
的异常。~~
大树哥 - 有没有iOS的兼职
http://www.html5plus.org/doc/zh_cn/xhr.html
http://dcloudio.github.io/mui/javascript/#ajax
headers这个参数,我找了所有的api和文档,都没看到,差点就看源码了。
好朋友,加一个嘛。
Reason (作者)
好的,谢谢。。。看api中没有header这个参数啊~~
2015-06-05 09:21