Keep URL unaffected when anchor link is clicked

前端 未结 5 1978
忘了有多久
忘了有多久 2021-02-04 12:26

I\'ve checked other posts on here, no results of what I\'m looking for. I want to click on

About
Conte
5条回答
  •  南方客
    南方客 (楼主)
    2021-02-04 12:30

    window.location.hash = ""  
    

    is the possible way I could find.

    hash gives the string next to #.

提交回复
热议问题