Mui page Jump (pass value + receive), mui jump
1 <script type = "text/javascript" charset = "UTF-8"> 2 mui. init (); 3 mui. plusReady (function () {4 document. getElementById ("test "). addEventListener ("tap", function () {5 mui. openWindow ({6 url: "search.html", 7 id: "search", 8 waiting: {9 autoShow: false10}, 11 extras: {12 name: 'testapp' 13} 14}); 15 16}); 17 }); 18 </script> 19 <a id = "test"> jump to search.html </a> 20 to receive 21 <script type = "text/javascript" charset = "UTF-8"> 22 mui. init (); 23 // page B onload obtains the list data from the server; 24 window. onload = function () {// You can omit 25 // obtain data from the server 26 // The service data has been obtained and the current page DOM has been inserted; 27 // note: for ajax requests, put the following code after processing the ajax response data; 28 mui. plusReady (function () {29 var self = plus. webview. currentWebview (); 30 var name = self. name; 31 console. log (name); 32 // close Wait box 33 plus. nativeUI. closeWaiting (); 34 // display the current page 35 mui. currentWebview. show (); 36}); 37} 38 </script>