Skip to content

Instantly share code, notes, and snippets.

@Baozi2
Created November 16, 2018 04:19
Show Gist options
  • Save Baozi2/5a855cbfa2b9f461a736f87c2436df84 to your computer and use it in GitHub Desktop.
Save Baozi2/5a855cbfa2b9f461a736f87c2436df84 to your computer and use it in GitHub Desktop.
jquery ajax data content ?? make a JSONP
jQuery的ajax数据中含有??
此问题仅在 dataType指定为JSON,并且data为string是出现。解决办法,
1. 转移data
2. 使用object的data
3. 指定contentType
4. 不指定dataType
@Baozi2
Copy link
Author

Baozi2 commented Nov 16, 2018

wx20181116-103234 2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment