blockly > utils > dom > removeNode
تابع ()utils.dom.removeNode
یک گره را از والد خود حذف می کند. در صورتی که به والدین متصل نشده باشد، عملیات غیر فعال انجام شود.
امضا:
export declare function removeNode(node: Node | null): Node | null;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
گره | گره | تهی | گره برای حذف. |
برمی گرداند:
گره | تهی
گره در صورت حذف حذف می شود. در غیر این صورت، پوچ
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-10 بهوقت ساعت هماهنگ جهانی."],[[["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."]]],[]]