0

I am writing an application which can only allow users to print pages once. I am looking for a way to find out which pages have been sent to the printer to update a database to mark those pages are printed.

4

1 回答 1

0

您必须捕获打印机按钮并存储到您自己的控制中。

之后,您可以在 div 上使用媒体打印以在单击打印机按钮时显示或不显示内容。

在这里看看如何捕获按钮:如何在 Javascript window.print() 调用的默认打印菜单上捕获点击事件?

于 2016-04-11T14:39:02.633 回答