登 录
没有removeAll的API,但也十分容易实现:
while (node.hasChildNodes()) { node.removeChild(node.lastChild); }
抱歉!评论已关闭.