html 頁面調用js連接並顯示數據

html 頁面調用js連接並顯示數據php

1、測試頁面1html

<!doctype html>ide

<html>測試

<div id='dv'></div>this

 <script  src="http://qt.gtimg.cn/q=sz399001" charset="gb2312">spa


</script>htm

<script >ip

var test = JSON.stringify(v_sz399001)get

console.log(test)qt

document.getElementById("dv").innerHTML=test;

</script>

<body>

this is test1 page


</body>

</html>


2、測試頁面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>

相關文章
相關標籤/搜索