Explorar o código

修改window.open属性

zhangxc %!s(int64=6) %!d(string=hai) anos
pai
achega
83926f77e6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/js/promise.js

+ 1 - 1
src/js/promise.js

@@ -62,7 +62,7 @@ const newinConf = {
 
 const newWindowLocation = `width=${newinConf.width}, height=${newinConf.height}, left=${newinConf.left}, top=${newinConf.top} scrollbars=yes`
 const openNewWin = function(url) {
-  window.open(url, "_blank", newWindowLocation)
+  window.open(url, "newwindow", newWindowLocation)
 }
 
 const throttle =  function(fn, threshhold) {