使用JS获取URL网址参数
window.location.protocol=http: window.location.host=127.0.0.1:801 window.location.port=801 window.location.pathname=/tool/test.html window.location.search=?token=key window.location.hash=#abc window.location.href=http://127.0.0.1:801/tool/test.html?token=key#abc