MCPcopy Create free account
hub / github.com/WhiteSevs/TamperMonkeyScript / remove

Method remove

lib/pops/src/utils/PopsDOMUtils.ts:2596–2622  ·  view source on GitHub ↗

* 移除元素(包括它和内部使用.on添加的监听事件) * @param $el 目标元素,可以是数组、单个元素、NodeList、元素选择器 * @example * DOMUtils.remove(document.querySelector("a.xx")) * DOMUtils.remove(document.querySelectorAll("a.xx")) * DOMUtils.remove("a.xx") * DOMUtils.remove([a.xxx, div.xxx, span.xxx]) *

($el: PopsDOMUtilsTargetElementType | Element | null | undefined)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

initFunction · 0.45
transitionEndCallbackFunction · 0.45
createToolTipMethod · 0.45
destoryMethod · 0.45
clearDeepMenuContainerFunction · 0.45
removeValidErrorMsgFunction · 0.45
onValueChangeFunction · 0.45
updateTagItemFunction · 0.45
removeSelectedTagItemFunction · 0.45
setSearchItemClickEventFunction · 0.45
removePromptsInSearchFunction · 0.45
initFunction · 0.45

Calls 5

isNodeListMethod · 0.80
forEachMethod · 0.80
removeChildMethod · 0.80
selectorAllMethod · 0.45
offAllMethod · 0.45

Tested by

no test coverage detected