File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -493,11 +493,11 @@ JsExcel.prototype.cloneNode = function (flag) {
493
493
}
494
494
return dom ;
495
495
} ;
496
- JsExcel . prototype . print = function ( width , id ) {
496
+ JsExcel . prototype . print = function ( width , id , title ) {
497
497
id = id || ( new Date ( ) ) . valueOf ( ) ;
498
498
var newWindow = window . open ( "about:blank?source=" + id , "_blank" ) ;
499
499
// var newWindow = window.open("打印窗口" + (new Date()).valueOf(), "_blank");
500
- newWindow . document . title = "深圳市汇利斯通信息技术有限公司 ";
500
+ newWindow . document . title = title || "打印预览 ";
501
501
newWindow . document . body . style . width = ( width || 800 ) + "px" ;
502
502
newWindow . document . body . style . width = ( width || 800 ) + "px" ;
503
503
newWindow . document . body . appendChild ( this . ToBase64Image ( this . cloneNode ( true ) ) ) ;
@@ -1178,4 +1178,4 @@ String.prototype.format = function (args) {
1178
1178
}
1179
1179
}
1180
1180
return result ;
1181
- } ;
1181
+ } ;
You can’t perform that action at this time.
0 commit comments