搜索

首页  >  问答  >  正文

javascript - 移动版QQ内置的webview怎么实现window.location.href?

如题,
我的页面里边有个地址是通过ajax获取动态url之后执行的window.location.href= xxx
好像移动端QQ里打开的webview屏蔽了window.location.href?
有什么比较好的解决办法吗……

PHP中文网PHP中文网2906 天前997

全部回复(2)我来回复

  • 阿神

    阿神2017-04-11 11:05:15

    jQuery

    $.ajax({
      url: "/target",
      context: document.body
    }).done(function(data) {
       $("body").html(data);
    });

    回复
    0
  • 迷茫

    迷茫2017-04-11 11:05:15

    试试window.location=xxx

    回复
    0
  • 取消回复