摘要:
### 方法一 ``` const printWindow = window.open() printWindow.document.write(document.querySelector('#printBox').innerHTML) printWindow.print() printWindo 阅读全文
摘要:
![](https://img2022.cnblogs.com/blog/2483371/202209/2483371-20220922140737136-324525154.png) 阅读全文