print.js继承原有样式

  • npm install --save print-js

  • import Print from 'print-js'

  • 调用print.js插件

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

猜你喜欢

转载自www.cnblogs.com/maggieq8324/p/11505816.html
今日推荐