$ cnpm install remove-element
Removes an element from the DOM. Very simple – but helps reduce a bit of boilerplate and might spare somebody some Googling if they forget.
remove(el)
Removes el
from the DOM, if it's attached.
MIT. See LICENSE.md for details.
Copyright 2014 - 2017 © taobao.org |