The English name of “QR Code” is “QR Code”. “QR” is the abbreviation of “Quick Response”, which reflects that this QR code has the characteristic of “ultra-high-speed reading”. “Quick Response Code” means “Quick response code”. npm downloadnpm install vue-qr --save Download Success: step(1) Importimport VueQr from 'vue-qr' (2) vue-qr parameters
Example<template> <div> <vue-qr :text="imgUrl" :size="250" :logoSrc="logo" :logoScale="0.2"> </vue-qr> </div> </template> <script> import VueQr from 'vue-qr' export default { name:'', components:{ VueQr, }, data() { return { imgUrl: 'https://baidu.com', logo: require('@/assets/tea_128.png'), } }, methods:{ }, } </script> result: SummarizeThis article ends here. I hope it can be helpful to you. I also hope you can pay more attention to more content on 123WORDPRESS.COM! You may also be interested in:
|
<<: Sample code for making a drop-down menu using pure CSS
>>: The impact of limit on query performance in MySQL
Written in front There are two ways to upgrade My...
Table of contents 1. Deploy consul cluster 1. Pre...
introduction: Slider drag verification is now use...
Table of contents Special characters in URLs URL ...
This article shares the specific code of jQuery t...
Aggregating data from various sources allows the ...
MySQL service 8.0.14 installation (general), for ...
In the previous blog, we learned about the usage ...
My system and software versions are as follows: S...
When exporting data to operations, it is inevitab...
The effect is as follows: analyze 1. Here you can...
The environment of this article is Windows 10, an...
Connections can be used to query, update, and est...
Note: All pictures in this article are collected ...
Table of contents 1. Create a sql script file con...