javascript 如何获得html DOM节点的属性值先给你看下面两段代码:<div id="div1">test!<div><script> console.log(document.getE2023-04-17JavaScript250