js获取当前元素的所有子孙节点 被恶魔盯着的小白兔 2021-08-27 673 阅读1分钟 wrapper是当前元素的id。document.getElementById('wrapper').getElementsByTagName('*');