JS基础知识点(12)——location对象
原创location对象
location.href:返回url信息(可访问url信息也可以实现页面重定向分配值
location.assign();加载一个新文档(跳转到页面)
location.reload();重新加载当前文档(相当于F5刷新)
location.replace();用一个新的替换当前文档(跳)
location.assign();和location.replace();的区别:
location.assign();:将生成历史记录;
location.replace();:没有将生成历史记录;
版权声明
所有资源都来源于爬虫采集,如有侵权请联系我们,我们将立即删除
相关文章
最新文章
- Fornax's Guide to Fast Ethernet 3分钟前
- Possibly leaked NSA Cyberattack tool behind attacks (2017) 1小时前
- Steve Wozniak on Writing Apple Integer Basic 1小时前
- PayByPhone is stealing $50M/year from their users 1小时前
- Grand Theft Auto 6: A Landmark Achievement That Redefines a Console Generation 1小时前
- Research Acceleration: The Jagged Frontier 2小时前
- Google Embraces Geothermal Technology to Vaporize Rock for Clean Power 3小时前
- Microsoft's Agent Framework PyPI package compromised to steal credentials 4小时前
- Nvidia's Seven Billionaires Have Lost a Third of Their Wealth 4小时前
- Stabyourself.net Games 5小时前
itfan123


