1. 首页
  2. 数据库
  3. 其它
  4. 异步加载script的代码

异步加载script的代码

上传者: 2021-02-20 02:34:09上传 PDF文件 20.49KB 热度 9次
通过iframe 异步加载script 通过异步请求另一页面的script 是不执行的,只返回html 原文件,因为返回的文本没有经过浏览器的解析执行。 看代码 a1.html 代码如下: <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <title>无标题页</title> </head> [removed] function testClick() { document.getElementById(“tsrc”).src=”a2.html” } [removed] <
下载地址
用户评论