[quote=引用 1 楼 gy127132060 的回复:] 楼主啊。。。你这句话。。。 document.write('<script src="http://pv.sohu.com/cityjson" type="text/javascript"></script>'); 等于把<script src="http://pv.sohu.com/cityjson" type="text/javascript"></script>写在了。。。1.js里。。。 你就是写了一个js导入语句。。。能有什么数据给你用。。。。
document.write('<script src="http://pv.sohu.com/cityjson" type="text/javascript"></script>');
楼主,我这里亲测可以哟 JS: $(function() { document.write('<script src="http://pv.sohu.com/cityjson" type="text/javascript"></script>'); console.log(returnCitySN['cname']) }); HTML引入: <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.0.js"></script> <script type="text/javascript" src="TEST.js"></script>
楼主啊。。。你这句话。。。 document.write('<script src="http://pv.sohu.com/cityjson" type="text/javascript"></script>'); 等于把<script src="http://pv.sohu.com/cityjson" type="text/javascript"></script>写在了。。。1.js里。。。 你就是写了一个js导入语句。。。能有什么数据给你用。。。。
87,994
社区成员
224,708
社区内容
加载中
试试用AI创作助手写篇文章吧