XML DOM - วัตถุความคิดเห็น
ลองด้วยตัวคุณเอง - ตัวอย่าง
ตัวอย่างด้าน ล่างใช้ไฟล์ XML books.xml
วัตถุแสดงความคิดเห็น
ออบเจ็กต์ความคิดเห็นแสดงถึงเนื้อหาของโหนดความคิดเห็นในเอกสาร
คุณสมบัติอ็อบเจ็กต์ความคิดเห็น
Property | Description |
---|---|
data | Sets or returns the text of this node |
length | Returns the length of the text of this node |
แสดงความคิดเห็น Object Methods
Property | Description |
---|---|
appendData() | Appends data to the node |
deleteData() | Deletes data from the node |
insertData() | Inserts data into the node |
replaceData() | Replaces data in the node |
substringData() | Extracts data from the node |