获取网页地址栏信息

在console面板中输入

window.location.href

即可获取浏览器整个地址信息,同时也可在后面添加.length属性获取地址长度

window.location.href.lenght

在这里插入图片描述

发布了11 篇原创文章 · 获赞 0 · 访问量 573

猜你喜欢

转载自blog.csdn.net/weixin_44845533/article/details/98771818