LvMax 发表于 2013-1-29 09:31:52

一些公用函数

// 取得页面元素 方法一function GetObj(objName){   if(document.getElementById)   {      return eval('document.getElementById("'+objName+'")')   }   else   {      return eval('document.all.' + objName)   }}//取得页面元素 方法二function GetObj(id){   return "string" == typeof id ? document.getElementById(id) : id;}
页: [1]
查看完整版本: 一些公用函数