Obitun DOM na Del
Del Object
The Del object represents the HTML <del> element.
Access Del Object
You can access the <del> element by using getElementById():
var x = document.getElementById("myDel");
Create Del Object
You can create a <del> element by using the document.createElement() method:
var x = document.createElement("DEL");
Del Object Properties
属性 | Description |
---|---|
cite | A set or return the value of the cite attribute of the deleted text. |
dateTime | 设置或者返回被删除文本的 datetime 属性值。 |