The Details object represents an HTML <details> element.
Note: The <details> element is not supported in Internet Explorer.
You can access a <details> element by using getElementById():
You can create a <details> element by using the document.createElement() method:
Property | Description |
---|---|
open | Sets or returns whether the details should be visible (open) to the user, or not |
The Details object also supports the standard properties and events.
HTML reference: HTML <details> tag
HTML reference: HTML <summary> tag
JavaScript reference: HTML DOM Details Object
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!