blockly > utils > dom > removeNode
Funktion utils.dom.removeNode()
Entfernt einen Knoten aus dem übergeordneten Knoten. Managementfrei, wenn es nicht mit einem übergeordneten Element verknüpft ist.
Unterschrift:
export declare function removeNode(node: Node | null): Node | null;
Parameter
Parameter |
Typ |
Beschreibung |
Knoten |
Knoten | null |
Der zu entfernende Knoten. |
Gibt zurück:
Knoten | null
Der Knoten, der entfernt wurde, wenn er entfernt wurde: else, null.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-22 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-08-22 (UTC)."],[[["Removes a specified node from its parent in the DOM."],["Returns the removed node, or null if the node was not attached to a parent."],["Utilizes the `removeNode()` function within the `Blockly.utils.dom` namespace for this operation."],["Accepts a single argument: the node to be removed."],["If the provided node is not attached to a parent element, the function does nothing."]]],[]]