此代码在Google Chrome中运行良好,但无法在Internet Explorer中使用:
document.getElementsByClassName('info')[i].remove();
还有其他方法可以做同样的事情,还是可以.remove()在Internet Explorer中工作?
.remove()
javascript jquery cross-browser
cross-browser ×1
javascript ×1
jquery ×1