When hash(#) link pressed in some websites, does not add hash to url?
问题 I have hash(#) links in my own website, and I realised that when I click on them, a hash sign will always appear at the end of my url. But in other web pages that I was fiddling around with, no matter how many times I clicked the link which had a source of '#', it would never add a hash to the end of my URL. Why is this? 回答1: They probably have javascript attached to the link that prevents the link action from starting. A simple return false; will do this 回答2: It's normal behaviour of anchor