摘要:
//判断对象的类型 Array Object Function String Number ..... function getObjType(obj){ return Object.prototype.toString.call(obj).slice(8,-1);} //拷贝对象 function 阅读全文
摘要:
dom元素是否可见可使用jq的is方法和dom的offsetParent null方法 jq中 $(element).is(":visible") true !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().leng 阅读全文