标签:style blog color io os ar div sp cti
function Jcontains(root, el) { if (root.compareDocumentPosition) return root === el || !!(root.compareDocumentPosition(el) & 16); if (root.contains && el.nodeType === 1){ return root.contains(el) && root !== el; } while ((el = el.parentNode)) if (el === root) return true; return false; }
标签:style blog color io os ar div sp cti
原文地址:http://www.cnblogs.com/llqfront/p/3968231.html