跳转无效location.href

mac2022-06-30  130

在js函数中加上

window.event.returnValue=false;

$('.link1').click(function() { //在js函数中加上这行代码 window.event.returnValue=false; location.href = "https://www.baidu.com/"; });

转载于:https://www.cnblogs.com/jassy/p/11377956.html

最新回复(0)