微信小程序 获取当前页面路由
2019-10-08 本文已影响0人
张思学
let pages = getCurrentPages();
if (pages.length) currPage = pages[pages.length - 1];
console.log(currPage)
let pages = getCurrentPages();
if (pages.length) currPage = pages[pages.length - 1];
console.log(currPage)