var openid = $("#openid").val(); window.addEventListener('message', function(e) { if(e.source != window.parent) return; window.parent.postMessage(openid, '*'); }, false); var ua = navigator.userAgent.toLowerCase(); if(/iphone|ipad|ipod/.test(ua)) { setTimeout(function() { getOpenId() }, 1000) } function getOpenId() { window.parent.postMessage(openid, '*'); }
子页面内容