//路由配置router.map({ '/':{ name:'a', component: a }, '/details/':{ name:'b', component: b }});需求是每次回到a組件時都要觸發一個函數。當我從a組件跳轉到bs組件然后再回退時a組件的window.onload就不會觸發了,請問要怎么寫才能實現每次從b回退到a都會觸發這個函數?
單頁面web應用使用router跳轉后會觸發什么事件呢?
DIEA
2018-08-09 10:10:07