<button style="margin-top: 30px;" onclick=" window.location.href = '#wrap'">Explore the bar-line chart</button>
点击按钮定位到本HTML页面中Div的id为wrap的位置上
备注:
window.location.href和window.location.hash两个都可以实现定位,但是window.location.href比较好点,因为可以连续点同一个button多次都有效果,hash同一个button不能连续点第二次,连续点第二次不执行跳转。