Article Source: http://www.111cn.net/sys/CentOS/67213.htm
First, page refresh issues
1. Parent page A jumps to the child page b,b The page modifies the data and then jumps back to the a page, refreshing the A page data (1). Parent page A code window.addeventlistener ("Pageflowrefresh", function (e) { Location.reload ();});( 2). Sub-page b code var main = Plus.webview.currentWebview (). opener ();//Get Parent page A object var main = plus.webview.getWebviewById (' A ');// Or get a Page object via a page ID mui.fire (main, "Pageflowrefresh");//The Pageflowrefresh method Mui.redirect (' A ', ' a.html ') on the page A;//jump to page A
second, the problem of the transfer of value between pages1. From page A to page B (Mui.fire () mode) (1). A page code var main = plus.webview.getWebviewById (' B '); Mui.fire (Main, "Pageflowrefresh", {id:100}) (2). b page Code Www.bcty365.comwindow.addEventListener ("Pageflowrefresh", function (e) {///Get event argument var id = e.detail.id;}); 2. From page A to page B (MUI. mode) (1). A page code mui.openwindow ({url: ' b.html ', Extras:{id: ' + '}});(2). b page code var self=plus.webview.currentwebview ();//Gets the current form object Var receiveid=self.id;//receives the ID parameter value passed in a page
"Go" hbuilder MUI page refresh and page pass-through issues