此处我们设置 window.location.hash = '#2' ,然后页面会跳转到黑色块的区域,和我们直接点击 <a href='#2'>black</a> 标签的锚点效果是一致的。
確定! 回上一頁