在console面板中输入 window.location.href 即可获取浏览器整个地址信息,同时也可在后面添加.length属性获取地址长度 window.location.href.lenght