[JavaScript]获取url各项参数详解 2020/2/25 JavaScript 0 Comments 955 Views 0 Times (本例)URL:http://www.itnotes.cc:80/example.html?ver=1.0&id=1#hash 用js获得其中的各个部分 1、window.location.href 整个URl字符串(在浏览器中就是…