两种方式:
1. <xmp>标签
这样<xmp>标签里面的内容将原封不动的显示出来。
例如
<xmp> <table> <tr> <th width="140">a</td> <th width="140">b</td> <th width="140">c</td> </tr> </table> </xmp>
2. 在js设置的时候 使用text()去掉html()
$("#tt").text("<h1>111</h1>")
两种方式:
1. <xmp>标签
这样<xmp>标签里面的内容将原封不动的显示出来。
例如
<xmp> <table> <tr> <th width="140">a</td> <th width="140">b</td> <th width="140">c</td> </tr> </table> </xmp>
2. 在js设置的时候 使用text()去掉html()
$("#tt").text("<h1>111</h1>")