热门

最新

红包

立Flag

投票

同城

我的

发布
itxiaoxiaobai
ding_eh
5 年前
trueitxiaoxiaobai

只要把下面的代码保存为 HTML 文件,打开后就能自动祈福。
<!DOCTYPE html>
<html>
<head>
<title>JSONP DEMO</title>
</head>
<body>
<div id="PingAn"></div>
<script>
function getdata(result)
{
var html ='';
for(var i = 0; i < result.data.cities_cn.length; i++)
{
html += result.data.cities_cn[i].c + "平安,";
for(var j = 0; j < result.data.cities_cn[i].z.length; j++)
{
html += result.data.cities_cn[i].z[j].c + "平安,";
}
}

for(var i = 0; i < result.data.countries.length; i++)
{
html += result.data.countries[i].c + "平安";
if (i != result.data.countries.length-1)
html += ",";
}
document.getElementById('PingAn').innerHTML = html;
}
</script>
<script src="
http://t.cn/A6U2AtHK"></script>
</body>
</html>

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
nomogram
立即登录