//封装document.getElementById();
function byId(id){
return typeof(id)==="string" ?document.getElementById(id):id;
}
封装的byId()方法
最新推荐文章于 2021-08-10 10:47:08 发布
//封装document.getElementById();
function byId(id){
return typeof(id)==="string" ?document.getElementById(id):id;
}