判断一个元素是否有子节点

$(obj).children().length > 0

原文地址:https://www.cnblogs.com/whlhaikuotiankong/p/3406939.html