|
|
|
// 取得页面元素 方法一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;} |
|