How to make an anchor tag refer to nothing?

后端 未结 18 1724
一向
一向 2020-12-12 10:28

I use jQuery, I need to make some anchor tags perform no action.

I usually write it like this:

link

H

18条回答
  •  孤城傲影
    2020-12-12 10:48

    React no longer support using a function like this href="javascript:void(0)" in your anchor tag, but here is something that works pretty well.

     null} >link
    

提交回复
热议问题