doing substring in [removed].hash

后端 未结 4 1696
渐次进展
渐次进展 2021-01-03 12:29

Somehow window.location.hash is being handled differently in different browsers. If I have a url as follows

http://maps-demo.bytecraft.com.my/postdemo/parcel         


        
4条回答
  •  时光说笑
    2021-01-03 13:19

    You could also do that :

    var whatYouWant = window.location.hash.split('?')[0].substring(14);

提交回复
热议问题