Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5ccfdd6

Browse files
committedJan 26, 2013
修正一个标签
1 parent ab555c8 commit 5ccfdd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎chapter8.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ HTTP协议支持“分块编码”。它允许将页面分成一块一块发送
743743

744744
- 使用XHR加载脚本,然后作为一个字符串使用eval()来执行。这种方法受同源策略的限制,而且引入了eval()这种“反模式”。
745745
- 使用defer和async属性,但有浏览器兼容性问题
746-
- 使用动态<script>元素
746+
- 使用动态\<script\>元素
747747

748748
最后一种是一个很好并且实际可行的模式。和介绍JSONP时所做的一样,创建一个新的script元素,设置它的src属性,然后将它放到页面上。
749749

0 commit comments

Comments
 (0)
Please sign in to comment.