js 小技巧
1. 无刷新去除 网址的参数
window.history.pushState({}, document.title, window.location.pathname);
2. Date对象 具体可以查阅 mdn
new Date() // Wed Jul 20 2022 15:00:10 GMT+0800 (中国标准时间)
new Date('2022/01/01') // Sat Jan 01 2022 00:00:00 GMT+0800 (中国标准时间)
new Date(2022, 12, 01) // Sun Jan 01 2023 00:00:00 GMT+0800 (中国标准时间)
new Date().toLocaleString('zh-CN') // 2022/7/20 14:59:13
new Date().toLocaleString('zh-CN', {month:'long'}) // 七月