1. 首页
  2. 数据库
  3. 其它
  4. 动态创建script标签实现跨域资源访问的方法介绍

动态创建script标签实现跨域资源访问的方法介绍

上传者: 2021-04-19 19:19:56上传 PDF文件 23.95KB 热度 9次
login.html 代码如下:[removed] function request(id,url){ oScript = document.getElementById(id); var head = document.getElementsByTagName(“head”).item(0); if (oScript) { head.removeChild(oScript); } oScript = document.createElement(“script”); oScript.setAttribute(“src”, url)
下载地址
用户评论