ipu的trunk版的android工程和服务端工程。

withiframe.html 1.4KB

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <script src="res/js/mobile-core.js"></script> <script src="res/js/zepto.js"></script> <script src="res/js/base64.js"></script> <script src="res/js/jcl.js"></script> <script src="res/js/wade-mobile.js"></script> <script src="res/js/expand-mobile.js"></script> <script src="biz/js/common/biz-mobile.js"></script> </head> <body> <h1>下面是iframe的内容</h1> <iframe id="testIframe" src="myindex.html" style="width: 300px;height: 500px;"></iframe> </body> <script type="text/javascript"> window.WadeMobile.onMobileBackPressed = function(){ alert("(top)返回事件中传递的信息为:" + paramObj.message); WadeMobile.close(); } </script> <iframe id="testIframe2" src="myindex2.html" style="width: 300px;height: 500px;"></iframe> <script type="text/javascript"> setTimeout(function(){ var testIframe = top.document.getElementById('testIframe'); //testIframe.parentNode.removeChild(testIframe); testIframe.src = "myindex3.html"; setTimeout(function(){ for(var key in top.WadeMobileSet){ if( key.indexOf("_WadeMobileSet_Key_") != -1){ try{ console.log("可被删除:" + key + top.WadeMobileSet[key].canRemoved()); }catch(e){ console.log("出错了:" + e); } } } },3000) },1000); </script> </html>