Skip to content

Commit ef7d23a

Browse files
committed
add cross domain
1 parent 4df1329 commit ef7d23a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
2.JavaScript this <br />
2222
3.JavaScript 闭包<br />
2323
4.JavaScript 事件</a> <br />
24-
5.<a href="https://github.com/wchaowu/javascript-code/tree/master/javascript-based/crossDomain.js">javascript 跨域</a> <br />
24+
5.<a href="https://github.com/wchaowu/javascript-code/tree/master/javascript-based/crossDomain.html">javascript 跨域</a> <br />
2525

2626

2727
<h3 name="OjectOriented">Oject-Oriented</h3>

javascript-based/crossDomain.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ajax:XMLHttpRequest();不能跨域<br />
2+
<br />
3+
跨域的方法<br />
4+
1.document.domain="a.com"<br />
5+
2.服务器代理:XMLHttpRequest代理文件<br />
6+
3.script 标签:jsonp<br />
7+
4.location.hash (iframe)<br />
8+
5.window.name (iframe)<br />
9+
6 flash<br />
10+
7 html5 postMessage

0 commit comments

Comments
 (0)