angular实现打印预览

it2025-12-25  8

法一:

页面中:

ts文件中:

法二:使用插件,在github上找到的插件https://github.com/selemxmn/ngx-print

页面中:

加标题

加样式:

使用现有样式

使用外部文件中的样式

案例:

最新回复(0)