blockly > utils > dom > insertAfter
Funkcja utils.dom.insertAfter()
Wstaw węzeł po węźle odwołania. Porównaj z funkcją node.insertBefore.
Podpis:
export declare function insertAfter(newNode: Element, refNode: Element): void;
Parametry
Parametr |
Typ |
Opis |
newNode |
Element |
Nowy element do wstawienia. |
refNode |
Element |
Istniejący element poprzedzający nowy węzeł. |
Zwroty:
nieważne
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-22 UTC.
[null,null,["Ostatnia aktualizacja: 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."]]],[]]