您的位置:首页 > Web前端 > JavaScript

JS. How to replace html element with another element/text, represented in string?

2013-12-18 11:06 489 查看


JS.
How to replace html element with another element/text, represented in string?

我写的比较简单,直接这样就ok了

tableElement.parentNode.insertBefore(canvas,tableElement);
tableElement.parentNode.removeChild(tableElement);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: