iframe顶部跳转跨域问题

   $("#button").on("click", function () {
                  //  top.location.location.href = 'http://18.ifeng.com/up/';
                    try{top.location.host}catch(exp){top.location="http://18.ifeng.com/up/";}
                })

posted @ 2015-11-30 09:45  奥巴马说你代码写的好  阅读(530)  评论(0编辑  收藏  举报