JS中设置window.location.href跳转无效JS中设置window.location.href跳转无效怎么办?出现的问题如下图:原因是 a标签的href跳转会执行在window.location.hre