Kaynağa Gözat

修改window.open属性

zhangxc 6 yıl önce
ebeveyn
işleme
83926f77e6
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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) {