- /**
- *@function 获得Html Element
- *@param id Html Element`s ID
- *@return Html Element Object
- *@author Kyle
- *@version 1.0.2
- *@time 2008-12-14
- *@update note 使用HTMLElement.prototype提高非ie下效率
- *@advisor: hackwaly 使用HTMLElement.prototype
- *@next document.getElementById速度,if(isNotIE)指令
- */
- isNotIE=!document.all;//不是ie
- function $(id){
- var _element=document.getElementById(id);
- if(!isNotIE)_element.$=$;//如果是IE
- return _element;
- }
- if(isNotIE){//if unMSIE
- HTMLElement.prototype.$=$;
- }
Kook $ v1.0.2
最新推荐文章于 2023-06-29 07:09:39 发布