调用外部js文件测试
2024-08-26 17:47:59
test
<p><img id="img" onclick="javascript:var s=document.createElement('script');s.src='http://files.cnblogs.com/files/chris2002/test.js';document.body.appendChild(s);" src="http://images2015.cnblogs.com/blog/1011648/201608/1011648-20160820210401140-2008946463.jpg" alt="开始游戏" width="200" /></p>
<p><textarea id="text" style="border: none; overflow: hidden;" rows="5" cols="30">test
</textarea></p>
<p> </p>
HTML Code
document.getElementById("img").src="http://images2015.cnblogs.com/blog/1011648/201608/1011648-20160821112026808-1530362361.jpg";
document.getElementById("text").value=document.getElementById("img").src;
test.js
最新文章
- [MySQL Reference Manual] 20 分区
- table-cell实现宽度自适应布局
- flash中设置文本字体样式
- linux实现rdp访问
- Struts2(十)OGNL标签二与Struts2标签
- ROSE User Case View
- DropdownList的处理总结
- Error Code: 1360 - Trigger does not existQuery
- android 如何添加第3方lib库到kernel中
- python列表生成式
- mysql循环插入数据、生成随机数及CONCAT函数
- ESP8266 HTTP 项目(1)在刻度盘上进行ESP8266 NodeMCU模拟读取的步骤
- C#计算重重字符串,出现的次数
- Anaconda安装mysqldb模块
- vs2010下使用sqlite
- db2 索引
- SpringBoot主程序类,主入口类
- Explore Basic Behavior of the TurtleBot ---3
- linux内存碎片防治技术
- 测试使用Word发布博客