JS common keywords examples and tricks

1.in js add id to html element and delete it

var elem = document.getElementById("zzz");if (elem!=null) elem.parentElement.removeChild(elem);

.attr({ id: "nps", })

2.in js delete a few type of elements

上一篇:deque容器


下一篇:deque容器