`
冷月无痕
  • 浏览: 3843 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

js跨域

阅读更多
知识积累*
1 调用隐藏层加载js
<html>
<head>
</head>
<body>
<script type="text/javascript" id="script1"></script>
<input type="text" id="a" name="a">
<input type="button" value="click" onclick="document.getElementById('script1').src='http://www.b.com/response.js'">
</body>
</html>

2 iframe跨域

3 jsonp
http://kjah.iteye.com/blog/771797
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics