曲奇饼 发表于 2020-3-8 21:13:26

JS获取当前网址的方法

var urlPath = window.document.location.href;//浏览器显示地址 http://10.15.5.83:5555/ISV/demo.aspx?a=1&b=2
var docPath = window.document.location.pathname; //文件在服务器相对地址 /ISV/demo.aspx

未完待续...
页: [1]
查看完整版本: JS获取当前网址的方法