Skip to content

Commit ffba2fb

Browse files
authored
Update JsExcel.js
1 parent 7e1217b commit ffba2fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Model/JsExcel/JsExcel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,11 +493,11 @@ JsExcel.prototype.cloneNode = function (flag) {
493493
}
494494
return dom;
495495
};
496-
JsExcel.prototype.print = function (width, id) {
496+
JsExcel.prototype.print = function (width, id,title) {
497497
id = id || (new Date()).valueOf();
498498
var newWindow = window.open("about:blank?source=" + id, "_blank");
499499
// var newWindow = window.open("打印窗口" + (new Date()).valueOf(), "_blank");
500-
newWindow.document.title = "深圳市汇利斯通信息技术有限公司";
500+
newWindow.document.title = title || "打印预览";
501501
newWindow.document.body.style.width = (width || 800) + "px";
502502
newWindow.document.body.style.width = (width || 800) + "px";
503503
newWindow.document.body.appendChild(this.ToBase64Image(this.cloneNode(true)));
@@ -1178,4 +1178,4 @@ String.prototype.format = function (args) {
11781178
}
11791179
}
11801180
return result;
1181-
};
1181+
};

0 commit comments

Comments
 (0)