javascript实现兼容IE获取窗体的高与宽functiongetWindowHeight(frameObject){if(document.all)returnframeObject.document.body.clientHeight;//IEonMacandWindowsif(document.layers)returnframeObject.document...
javascript常用的String对象扩展<scripttype="text/javascript">if(typeofString.prototype.ltrim=='undefined'){String.prototype.ltrim=function(){vars=this;s=s.replace(/^\s*/g,'');returns;}}if(typeofS...
原生javascript判断当前对象是否为函数/***判断是否为函数**@methodisFunc*@param{Object}*fun*@return{Boolean}*/window.isFunc=function(fun){return(fun!=null&&typeoffun=="function");}/***判断不是函数*...