草庐IT

workerWindow

全部标签

javascript - 如何在 ElectronJS 中打印 DIV

我正在尝试将我的网络转换为使用ElectronJS制作的应用在我的网页中,我打印了一个带有条形码的div。这工作得很好,但在electronjs中我无法做到这一点。本来我会用这个功能$scope.printDiv=function(divName){varprintContents=document.getElementById(divName).innerHTML;varpopupWin=window.open('','_blank','width=500,height=500');popupWin.document.open();popupWin.document.write(''

javascript - 如何在 ElectronJS 中打印 DIV

我正在尝试将我的网络转换为使用ElectronJS制作的应用在我的网页中,我打印了一个带有条形码的div。这工作得很好,但在electronjs中我无法做到这一点。本来我会用这个功能$scope.printDiv=function(divName){varprintContents=document.getElementById(divName).innerHTML;varpopupWin=window.open('','_blank','width=500,height=500');popupWin.document.open();popupWin.document.write(''