🌈 搜索
📅  最后修改于: 2022-03-11 15:04:04.534000             🧑  作者: Mango
let prevLocation; history.listen(nextLocation => { console.log(prevLocation); // ... prevLocation = nextLocation; });