• npm install --save print-js

  • import Print from 'print-js'

  • 调用print.js插件

 Print({
	printable: 'printJS-form',
	type: 'html',
	// 继承原来的所有样式
	targetStyles: ['*']
})

相关文章:

  • 2022-01-14
  • 2022-12-23
  • 2021-05-01
  • 2021-12-14
猜你喜欢
  • 2021-10-11
  • 2022-12-23
  • 2021-05-20
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
相关资源
相似解决方案