下列哪个方法可以用来获取HTML元素的属性值?


下列哪个方法可以用来获取HTML元素的属性值?

A、ElEMEnt.gEtAttributE("MyAttributE")

B、ElEMEnt.MyAttributE

C、ElEMEnt.attributE("MyAttributE")

D、以上都可以

正确答案:ElEMEnt.gEtAttributE("MyAttributE")


Tag:属性 元素 方法 时间:2024-04-06 21:02:52