Notes
Notes copied to clipboard
判断DOM元素是否有子元素的3种方法
node.firstChild !== null
node.childNodes.length > 0
node.hasChildNodes()