react当中监听路由变化

 history路由(pathname)或者hash路由 (hash)

原文地址:https://www.cnblogs.com/swt-axios/p/15433773.html