Applet processed before navigateTo return many times to jump to get the same data page

// execute onShow in 
const pages = getCurrentPages (); // get all the pages stack
const currPage = pages [pages.length - 1 ]; // current page
// determine whether the current page has data storage, any use, no memory
IF (! currPage.data.Id == undefined) {
this.id = currPage.data.Id || this.id;
} the else {
currPage.setData ({
Id: this.id
});
}

Guess you like

Origin www.cnblogs.com/ycyh1314/p/12512357.html