<head>
</head>
<script type="text/javascript">
var f = document.createElement("script");
f.setAttribute("src", "/friend.js");
document.head.appendChild(f);
</script>
<head>
</head>
<script type="text/javascript">
var f = document.createElement("script");
f.src="/friend.js";
document.head.appendChild(f);
</script>我加载了这样的两个HTml文件,然后查看源代码,但是显示不出我在head标签中插入的script标签。
哪里写得有问题?还是动态插入就是看不出?怎样改改呢?
解决方案 »
- window.open()打的新窗口覆盖在老窗口上 兄弟们帮我
- 如何用jsp创建数据库表
- 父页面如何给动态打开的IFRAME子页面赋值
- 怎么把这段JS,改成JQ?
- 解释js
- 求助:My97的JS怎么在struts1.x中实现
- prototype中的 IE:!!(window.attachEvent && !window.opera) 中的!! 是什么意思。
- 不能创建Adodb.Stream对象的问题!
- 以下这段代码为何在有些winxp win2000系统中出现类似爆炸的现象?
- 为什么第一种情况是好的,第二种情况却要报错?
- window.open( )为空或者不是对象是错误吗?
- iframe documetn
document.getElementsByTagName["head"][0].appendChild(f);