A small program acquires the data on the previous page

tags: Self-study road  Applets

A small program acquires the data on the previous page

/**
   * Lifecycle Function - Listening Page Load
   */
onload: function(){
	/ / Get the current page stack. The first element in the array is the homepage, the last element is the current page.
	let _page = getCurrentPages()
	
	prevPage = _page[_page.length - 2]
	/ / You can print the prVEpage to see what data needed
}

Intelligent Recommendation

The small program is judged to have a previous page

The applet is judged whether or not there is a page of practice: the focus is the method of using getcurrentpages ()  ...

Small program NaviGateback and return to previous page

With such a scene, the user has an operation or other operation in the order details page, click the return to the order list in the upper left corner, this time you need to refresh the list of data, ...

UNIAPP WeChat small program with reference to the previous page

Perform a step back to the upper page...

A small program gives the previous page pass value

A page jumps to the B page, the B page belt returns to the A page. A page B page A page...

More Recommendation

After the small operation current program and return to the previous page automatically refresh the data on a page

Page applet is micro-channel (page load) by the onLoad, onReady (initial page rendering is complete), onShow (page display), onHide (page hidden), onUnload (page unload) constitutes five cycles; Back ...

Small program selection receipt address NaviGateBack jump back to the previous page passed parameters, data update

Not much to say that directly on the code, there is a comment in the code Then follow the code on the previous page Here you need in onshow because you need to update in real time, so you need to moni...

Three methods and passions of the small program page jump and return to the previous page

WX.naVigateback: Back to the previous page WX.navigateto: Keep the current page, jump to a page within the applet. WX.Redirectto: Turn off the current page and jump to a page within the app. WX.Switch...

Mini program to manipulate the data on the previous page

The applet can directly manipulate the data of the previous page to realize reverse transfer...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top