微信小程序 获取当前页面路由
let pages = getCurrentPages(); let currPage = null; if (pages.length) { currPage = pages[pages.length - 1]; } console.log(currPage)
let pages = getCurrentPages(); let currPage = null; if (pages.length) { currPage = pages[pages.length - 1]; } console.log(currPage)