Details 對象表示一個(gè) HTML <details> 元素。
你可以使用 getElementById() 訪問 <details> 元素:
You can create a <details> element by using the document.createElement() method:
屬性 | 描述 |
---|---|
open | 設(shè)置或者返回 details 標(biāo)簽內(nèi)的描述信息是否顯示。 |
Details 對象同樣支持標(biāo)準(zhǔn)的 屬性 和事件。
HTML 參考手冊: HTML <details> 標(biāo)簽