页面返回上一页时怎么将拿到的值进行赋值?
let routes = getCurrentPages();
let curRoute = routes[routes.length - 2].options.name;
console.log(routes)
console.log(curRoute)
把curRoute赋给返回后的页面,返回是手机上自带的返回
let routes = getCurrentPages();
let curRoute = routes[routes.length - 2].options.name;
console.log(routes)
console.log(curRoute)
把curRoute赋给返回后的页面,返回是手机上自带的返回