jq插件中js这部分代码 会导致tab切换栏没法用,求教这段代码的大概含义
function $(el) {
if (!el) return null;
if (el.htmlElement) return Garbage.collect(el);
if ([window, document].contains(el)) return el;
var type = $type(el);
if (type == 'string') {
el = document.getElementById(el);
type = (el) ? 'element' : false
}
if (type != 'element') return null;
if (el.htmlElement) return Garbage.collect(el);
if (['object', 'embed'].contains(el.tagName.toLowerCase())) return el;
$extend(el, Element.prototype);
el.htmlElement = function () { };
return Garbage.collect(el)
};
慕瓜9220888
相关分类