摘要: function isParent (obj,parentObj){ while (obj != undefined && obj != null && obj.tagName.toUpperCase() != 'BODY'){ if (obj == parentObj){ return true; } obj = obj.parentNode; } return false;}$(document).click(function(event){ alert(isParent(event.target, $... 阅读全文
posted @ 2013-12-06 16:56 沉默术士 阅读(343) 评论(0) 推荐(0)