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

你可能感兴趣的:(jsonp,Blog)