JS 打印

RIOChing

关注

阅读 106

2023-02-17


function printme(mprint) {
var print ="<br><br><br>"+this.document.getElementById(mprint).innerHTML;

var newWindow = window.open("", "newWindow", "height=" + window.screen.height + ",width=" + window.screen.width + ",toolbar=no,scrollbars=auto,menubar=no");
newWindow.document.open("text/html");
newWindow.document.write(print);

newWindow.document.close();
newWindow.window.print();
newWindow.window.close();

}

 


精彩评论(0)

0 0 举报