innerHTML和innerText的区别

innerHTML可以对html格式标签做过滤,直接显示内容;
innerText不可以对html格式标签做过滤,直接显示<table><tbody><tr><td>asdlfkj</td></tr></tbody></table>
原文地址:https://www.cnblogs.com/into/p/4195032.html