The Li object represents an HTML <li> element.
You can access a <li> element by using getElementById():
You can create a <li> element by using the document.createElement() method:
Property | Description |
---|---|
value | Sets or returns the value of the value attribute of a list item |
The Li object also supports the standard properties and events.
HTML reference: HTML <li> tag
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!