javascript - 移动版QQ内置的webview怎么实现window.location.href?
PHP中文网
PHP中文网 2017-04-11 11:03:15
0
2
921

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

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
阿神

jQuery

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

试试window.location=xxx

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!