js打开新页面,顺便提示浏览器启用弹出窗口过滤功能
let route_blank = this.$router.resolve({ path: "/地址",//地址 query: { id: this.id }//传值 }); let temp_window = window.open(route_blank.href, "_blank");if (temp_window == null) { alert("您的浏览器启用弹出窗口过滤功能!\n请关闭此功能!"); }
let route_blank = this.$router.resolve({ path: "/地址",//地址 query: { id: this.id }//传值 }); let temp_window = window.open(route_blank.href, "_blank");if (temp_window == null) { alert("您的浏览器启用弹出窗口过滤功能!\n请关闭此功能!"); }