window.location.protocol + ‘//’ + window.location.host
相当于拿到 http://localhost:8802
window.location.protocol ------------- http
window.location.host -------------------- localhost:8802
获取浏览器地址
最新推荐文章于 2022-07-21 17:45:56 发布
window.location.protocol + ‘//’ + window.location.host
相当于拿到 http://localhost:8802
window.location.protocol ------------- http
window.location.host -------------------- localhost:8802