关于 Safari 浏览器不支持 location [ window.location.href window.open()] 跳转问题的解决方案
2021-05-28 17:06
阅读:624
标签:跳转 http location col doc 关于 com 通过 lin
最近在做项目时,碰到 safari 浏览器不支持location跳转问题,针对此问题,可以通过 js 模拟点击时间来解决,代码如下:
1 DOCTYPE HTML> 2 html lang="en-US"> 3 head> 4 meta charset="UTF-8"> 5 title>title> 6 head> 7 body> 8 a id=‘link‘ href="#">a> 9 script type="text/javascript"> 10 var obj = document.getElementById(‘link‘); 11 obj.href = "http://www.baidu.com"; 12 obj.click(); 13 script> 14 body> 15 html>
关于 Safari 浏览器不支持 location [ window.location.href window.open()] 跳转问题的解决方案
标签:跳转 http location col doc 关于 com 通过 lin
原文地址:https://www.cnblogs.com/whx-blogs/p/11125699.html
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:关于 Safari 浏览器不支持 location [ window.location.href window.open()] 跳转问题的解决方案
文章链接:http://soscw.com/index.php/essay/88742.html
文章标题:关于 Safari 浏览器不支持 location [ window.location.href window.open()] 跳转问题的解决方案
文章链接:http://soscw.com/index.php/essay/88742.html
评论
亲,登录后才可以留言!