location对象属性
| location对象属性 | 返回值 | 
| location.href | 获取或者设置整个URL | 
| location.host | 返回主机(域名)www.baidu.com | 
| location.port | 返回端口号,如果未写返回空字符串 | 
| location.pathname | 返回路径 | 
| location.search | 返回参数 | 
| location.hash | 返回片段 #后面内容常见于链接 锚点 | 
5秒后跳转页面:
<body>
    <button>点击</button>
    <div></div>
    <script>
        var btn = document.querySelector('button');
        var div = document.querySelector('div');
        var timer = 5;
        setInterval(function() {
            if (timer == 0) {
                location.href = 'https://www.baidu.com/';
            } else {
                div.innerHTML = '您将在' + timer + '秒钟之后跳转到首页';
                timer--;
            }
        }, 1000);
    </script>
</body>
 
近日总结:
最近身体不太舒服不知道咋回事,我细细想了想,应该是我虚弱了,想我以前,生龙活虎,虎虎生威,却没有想到今日居然虚弱至此。
我反反复复反反复复辗转反侧想了很久,最后我得出,我大约是因为许久没有锻炼身体了,才导致的如此,还有一个,就是舍友每天晚上都要打呼噜,导致我睡眠质量不佳。
最后解决方法:锻炼身体,好好学习,卷四他们。













![强化学习基础篇[3]:DQN、Actor-Critic详解](https://img-blog.csdnimg.cn/d553c7dadca54bdb82a3a234befb74d8.png#pic_center)






