a.html 页面代码
<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> <title></title> <script src="js/mui.min.js"></script> <link href="css/mui.min.css" rel="stylesheet"/> <script type="text/javascript" charset="utf-8"> mui.init(); </script></head><body> <input type="button" id="bb" value="我是A页面" /> <script > document.getElementById("bb").addEventListener('tap',function () { mui.openWindow( { url:'b.html', extras:{ddd :'dddd1'} }); }); </script></body></html>
b 页面代码
值:<input type="text" value="" id="ccc"/> </body></html>
本文转自 IT阿飞 51CTO博客,原文链接:
http://blog.51cto.com/itafei/1880504