87,907
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>test</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
</head>
<body>
<script src="http://127.0.0.1:8080/testWeb/test/js/test.js" type="text/javascript"></script>
<script type="text/javascript">
pid="201307xxxx";
</script>
<div id="showcontent"></div>
</body>
</html>
<script type="text/javascript">
pid="201307xxxx";
</script>
把这个放到引用的js文件前也是可以的。糊涂啊,忘记js的执行顺序了。