打印的时候,没有返回值的,
不好判断
window.print()Return Value
No return value.ResCalling the print method has the same effect as choosing Print from the Microsoft® Internet Explorer File menu. The print method activates the Print dialog box, prompting the user to change print settings. When the user clicks the OK button, the following sequence of events occurs: The onbeforeprint event fires.    //打印之前触发的事件
The document prints.    //文件打印
The onafterprint event fires. //打印这后,触发的事件,看看能不能在这儿想法子The onbeforeprint and onafterprint events are particularly useful when not all the information on the page is visible at all times. Use the onbeforeprint to modify the document to make all the information on the page visible for printing. To return the document to its original state, use the onafterprint event.