路由俩种方式hash和history 2019-10-24 本文已影响0人 阿凯_8b27 hash 原理为监听 #后面值的变化,window.haschange,监听url变化来实现history.replaceState()或者history.pushState()进行路由变化