首页 > Windows开发 > 详细

window.location 的各个参数

时间:2020-05-22 12:08:04      阅读:40      评论:0      收藏:0      [点我收藏+]

window.location各属性的值 :

window.location.href --"https://i.cnblogs.com/EditPosts.aspx?opt=1"
window.location.protocol --"https:"
window.location.host-- "i.cnblogs.com"
window.location.port --返回端口号
window.location.pathname-- "/EditPosts.aspx"
window.location.search--"?opt=1"
window.location.hash-- 返回锚点 #test

window.location 的各个参数

原文:https://www.cnblogs.com/SPHmomo/p/12936174.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!