摘要:高并发生成数学公式的方法
阅读全文
01 2014 档案
摘要:网上有很多帖子问到,chrome浏览器file://协议下,就是本地打开的页面,主页面和内嵌的iframe页面无法通讯,这其实是chrome的安全限制造成的。而实际上,他们之间能异步通讯的。但是不能同步通讯。 方法:利用HTML5的新api, postmessage。 在主页面index.htm $("IframeID").contentWindow.postmessage("hello world!","*"); 在iframe内内部 if(typeof window.addEventListener != 'undefin
阅读全文

浙公网安备 33010602011771号