1. 首页
  2. 数据库
  3. 其它
  4. getElementByIdx_x js自定义getElementById函数

getElementByIdx_x js自定义getElementById函数

上传者: 2021-01-17 04:35:28上传 PDF文件 15.92KB 热度 13次
函数代码: 代码如下: document.getElementByIdx_x=function(id){ if(typeof id ==’string’) return document.getElementById(id); else throw new error(‘please pass a string as a id!’) } 实例代码: 代码如下: 9 [removed] document.getElementByIdx_x=function(id){ if(typeof id ==’string’) return document.g
下载地址
用户评论