Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getJSON异常 #5

Closed
GongNation opened this issue May 24, 2014 · 4 comments
Closed

getJSON异常 #5

GongNation opened this issue May 24, 2014 · 4 comments

Comments

@GongNation
Copy link

399行“return avalon.get(url, data, callback, "jsonp")”中的"jsonp"应该是"json"吧?

@RubyLouvre
Copy link
Owner

没有错误

@GongNation
Copy link
Author

我把jquery的ajax请求换成mmRequest的时候,凡是用getJSON的地方都异常,跟踪代码后发现只要把jsonp换成json就正常,而且getJSON本来就不需要跨域为什么要用jsonp?

@RubyLouvre
Copy link
Owner

是你后端没有用到JSONP吧
我都是走JSONP路线

@RubyLouvre
Copy link
Owner

这个BUG已经修复

RubyLouvre pushed a commit that referenced this issue Mar 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants