Methods for Passing Parameters in Mini Programs
Data can be shared across pages in a mini program by setting properties on the global App instance. This instance holds a globalData object which acts as a global state container. // app.js App({ globalData: { userProfile: null } }) Other pages can retrieve this app instance using getApp() and then...