str="<a href=http://163.com> test </a>";
$("div#g").attr("innerHTML", str);如何让div中显示
<a href=http://163.com> test </a>
而不是test谢谢
$("div#g").attr("innerHTML", str);如何让div中显示
<a href=http://163.com> test </a>
而不是test谢谢
a{ text-decoration:none;}
</style>
但是如果是JQuery的话,addClass 就可以了