فهرست منبع

修改window.open属性

zhangxc 6 سال پیش
والد
کامیت
83926f77e6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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) {