href=“[removed]” vs. href=“[removed]void(0)”

前端 未结 8 707
[愿得一人]
[愿得一人] 2020-12-04 08:16

Our web app is rendered totally on the browser.
The server only talks to the browser through JSON messaging.

As a result, we only need a single page for the app

8条回答
  •  无人及你
    2020-12-04 09:16

    javascript:void(0); --> this executes void function and returns undefined. This could have issues with IE. javascript:; --> this does nothing. safest to create dead links. '#' --> this means pointing to same DOM, it will reload the page on click.

提交回复
热议问题