"Go" hbuilder MUI page refresh and page pass-through issues

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.