FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
javascript-code/javascript-based/crossDomain.html at master · killkiss/javascript-code · GitHub
killkiss
javascript-code
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
javascript-code
/
javascript-based
/
crossDomain.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
10 lines (10 loc) · 278 Bytes
Breadcrumbs
javascript-code
/
javascript-based
/
crossDomain.html
Copy path
File metadata and controls
10 lines (10 loc) · 278 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
ajax:XMLHttpRequest();不能跨域
<
br
/>
<
br
/>
跨域的方法
<
br
/>
1.document.domain="a.com"
<
br
/>
2.服务器代理:XMLHttpRequest代理文件
<
br
/>
3.script 标签:jsonp
<
br
/>
4.location.hash (iframe)
<
br
/>
5.window.name (iframe)
<
br
/>
6 flash
<
br
/>
7 html5 postMessage
Back
|
FazBrowse Home
|
New Git URL