แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > ผู้ใช้ > โดเมน > insertAfter
ฟังก์ชัน utils.dom.insertAfter()
แทรกโหนดหลังโหนดอ้างอิง ตัดกับฟังก์ชัน Node.insertbefore
ลายเซ็น:
export declare function insertAfter(newNode: Element, refNode: Element): void;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
newNode |
องค์ประกอบ |
องค์ประกอบใหม่ที่จะแทรก |
refNode |
องค์ประกอบ |
เอลิเมนต์ที่มีอยู่ที่จะอยู่ก่อนโหนดใหม่ |
การคืนสินค้า:
เป็นโมฆะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-22 UTC
[null,null,["อัปเดตล่าสุด 2024-08-22 UTC"],[[["The `utils.dom.insertAfter()` function inserts a new element after a specified existing element in the DOM."],["It takes two parameters: the new element to insert (`newNode`) and the existing element to precede the new one (`refNode`)."],["This function provides an alternative to the native `node.insertBefore()` method by positioning elements after a reference point."],["Its functionality focuses strictly on DOM manipulation and does not return any value."]]],[]]