本帖最后由 hbghlyj 于 2024-3-22 15:19 编辑
见Mozilla文档void operator
The void operator can be used to return undefined. For example:
Click here for green background
<a href="javascript:void(document.body.style.backgroundColor='green');">
Click here for green background
</a>
用void的写法是
2#
<a href="javascript:void(location.hash='#pid46755')">2<sup>#</sup></a>
成功了 |