在HTML中,可以使用getAttribute()方法获取元素的属性值。element.getAttribute("属性名")。 HTML如何获取属性值 单元1:使用getAttribute()方法获取属性值 - 描述:在HTML中,可以使用getAttribute()方法来获取……