摘要:实例如下:function isDOMElement(obj) { return !!(obj && typeof window !== 'undefined' &
实例如下:
function isDOMElement(obj) {
return !!(obj && typeof window !== 'undefined' && (obj === window || obj.nodeType));
}更多关于JS公共小方法之判断对象是否为domElement的实例请关注PHP中文网(www.php.cn)其他文章!