4-2 练习题

单选练习题

  • 1

假设元素element有个自定义属性age, 如何获取age的值?


A

element.age

B

element.getAttribute(‘age’)

C

Element[‘age’]

D

element.ageName