html 页面调用js链接并显示数据
一、测试页面1
<!doctype html>
<html>
<div id='dv'></div>
<script src="http://qt.gtimg.cn/q=sz399001" charset="gb2312">
</script>
<script >
var test = JSON.stringify(v_sz399001)
console.log(test)
document.getElementById("dv").innerHTML=test;
</script>
<body>
this is test1 page
</body>
</html>
二、测试页面2
<!doctype html>
<html>
<div id='dv'></div>
<script src="http://202.*.221.7/content/crc/sc/dlsnapshot.php" charset="gb2312">
</script>
<script >
console.log(JSON.stringify(crcHq[0].id))
var test = JSON.stringify(crcHq[0].name)
console.log(test)
document.getElementById("dv").innerHTML=test;
</script>
<body>
this is test1 page
</body>
</html>