jsonp原生实现封装
JSONP的最基本的原理是:动态添加一个<script>标签,而script标签的src属性是没有跨域的限制的。这样说来,这种跨域方式其实与ajax XmlHttpRequest协议无关了。
这样其实"jQuery AJAX跨域问题"就成了个伪命题,jquery
-
Notifications
You must be signed in to change notification settings - Fork 0
dnwu/jsonp
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
jsonp原生实现封装
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published