a hef如何调用window.location.host 打开当前网页链接
<div class="reg"><strong>打开当前网址<a href="window.location.host">http://<script>document.write(window.location.host);</script>/</a></strong></div>
呵呵,没注意你用的是 location.host
进入主页
不就行了,找那些麻烦干什么
呵呵,没注意你用的是 location.host
进入主页
不就行了,找那些麻烦干什么
进入主页 中有域名吗?
进入主页 中有域名吗?
有域名的 域名在哪?
window.location.host 是当前页的域名
浏览器会自己配上他
域名在哪?
window.location.host 是当前页的域名
浏览器会自己配上他
你用浏览器访问 http://www.rocuo.cn 时
那么 window.location.host 就是 www.rocuo.cn
访问的也是 http://www.rocuo.cn
你用浏览器访问 http://www.rocuo.cn 时
那么 window.location.host 就是 www.rocuo.cn
访问的也是 http://www.rocuo.cn
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号