当前位置:网站首页>打印页面的功能实现
打印页面的功能实现
2022-04-23 09:47:00 【观山.】
首先我们引入 vue-print-nb打印的插件
//在mian.js中引入
import Print from 'vue-print-nb'
Vue.use(Print)
在元素中先绑定一个ref的值
通过$refs获取元素进行打印页面
this.$print(this.$refs.printBeforeEle)
版权声明
本文为[观山.]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_47733727/article/details/124287408
边栏推荐
- How to use SQL statement union to get another column of another table when the content of a column in a table is empty
- 面试官:说几个PHP常用函数,幸好我面试之前看到了这篇文章
- Code source daily question div1 (701-707)
- A concise course of fast Fourier transform FFT
- kernel-pwn学习(3)--ret2user&&kernel ROP&&QWB2018-core
- ABAP implementation publishes restful services for external invocation example
- Simple understanding of arguments in JS
- Prefix sum of integral function -- Du Jiao sieve
- JS DOM learn three ways to create elements
- Redis expired key cleaning and deletion policy summary
猜你喜欢

Setnx command execution failed due to full redis memory

论文阅读《Integrity Monitoring Techniques for Vision Navigation Systems》——3背景

How to use SQL statement union to get another column of another table when the content of a column in a table is empty

个人主页软件Fenrus

JS DOM event

Flink 流批一体在小米的实践

SAP 03-amdp CDs table function using 'with' clause

JS node operation, why learn node operation

LeetCode 1611. The minimum number of operations to make an integer 0

Dropout技术之随机神经元与随机深度
随机推荐
[Niuke practice match 68] fans of Niuniu (matrix fast power cycle matrix optimization)
Base de la technologie électronique numérique 3.1 aperçu du circuit de porte, 3.2 circuit de porte à diode semi - conductrice
Comparison of overloading, rewriting and hiding
SAP debug debug for in, reduce and other complex statements
论文阅读《Integrity Monitoring Techniques for Vision Navigation Systems》
DVWA range practice record
Leetcode question bank 78 Subset (recursive C implementation)
MySQL - Chapter 1 (data types in MySQL)
Introduction to graph theory -- drawing
Vivo, hardware safe love and thunder
Educational Codeforces Round 81 (Rated for Div. 2)
Cloud identity is too loose, opening the door for attackers
NEC红外遥控编码说明
MacOS下使用CLion编译调试MySQL8.x
SAP excel has completed file level validation and repair. Some parts of this workbook may have been repaired or discarded.
[COCI] Vje š TICA (subset DP)
Kettle experiment (III)
JS DOM event
Exclusive thoughts and cases of JS
Setnx command execution failed due to full redis memory