Reference Address: http://www.newsmth.net/pc/pccon.php?id=2206&nid=398188
代码如下;strHTML +="<a class="close" href="#" onclick="$o(/"" + this.id + "/").getTab(/"" + tabpage.id + "/").close(); return false; ">";
Or as follows:
<a href=" javascript:void(0)" onclick="xxx();">xx</a>
Onclick trigger can be realized, but without triggering href address.
Reproduced in: https: //www.cnblogs.com/alterhu/archive/2012/05/19/2509291.html