是否可以得到window.location.hash仅在服务器端代码上?
window.location.hash
http://mysite.com/#here
我想要得到here
here
您必须使用一些 AJAX 来发送它,因为它无法从服务器端直接访问。