会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
比克
博客园
首页
新随笔
联系
订阅
管理
2020年6月23日
js获取当前URL、参数、端口、IP等服务器信息
摘要: 1,设置或获取对象指定的文件名或路径。console.log(window.location.pathname)2,设置或获取整个 URL 为字符串。console.log(window.location.href);3,设置或获取与 URL 关联的端口号码。console.log(window.l
阅读全文
posted @ 2020-06-23 10:07 桂长江
阅读(2792)
评论(0)
推荐(0)
编辑
公告