function isElement(obj) {
return !!(obj && (obj.nodeType == 1 || obj.nodeType == 9));
}
javascript判断对象是否为domElement
最新推荐文章于 2022-08-19 19:38:50 发布
function isElement(obj) {
return !!(obj && (obj.nodeType == 1 || obj.nodeType == 9));
}