json最简单的跨域
html代码
<html>
<head>
<title>index.html</title>
<script type="text/javascript">
function aehyok(data)
{
alert(data.result);
}
</script>
<script type="text/javascript" src="http://www.yourtour.cc/c.js" ></script>
</head>
<body></body>
</html>
js代码
aehyok({"result":"我是远程js带来的数据"});

浙公网安备 33010602011771号