window.open 重定向是会被浏览器拦截的,我选择的方法是 const newWindow = window.open("_target"); newWindow.location.href = "https://www.baidu.com"