$(function () {
jQuery.fn.isChildOf = function (b) {
return (this.parents(b).length > 0);
};
var flag = $("#child-div").isChildOf("#parent-div");
})
jQuery 添加jQuery对象的方法
猜你喜欢
转载自blog.csdn.net/weixin_42950052/article/details/82622704
今日推荐
周排行