function doLocation(url) {
var a = document.createElement("a");
if (!a.click)
{
window.location = url;
return;
}
a.setAttribute("href", url);
a.style.display = "none";
document.body.appendChild(a);
a.click();
}
function doLocation(url) {
var a = document.createElement("a");
if (!a.click)
{
window.location = url;
return;
}
a.setAttribute("href", url);
a.style.display = "none";
document.body.appendChild(a);
a.click();
}
本文标题:js执行跳转url,兼容所有浏览器
本文链接:https://www.haomeiwen.com/subject/tdbplqtx.html
网友评论