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
Table of contents 1. Introduction: 2. The first i...
Web Application Class 1. DownForEveryoneOrJustMe ...
Table of contents Preface 1. Get the length of a ...
There are many methods on the Internet that, alth...
step: 1. Create a new docker-compose.yml file in ...
Table of contents 1. React combined with Antd to ...
I logged into the backend to check the solution t...
This article records the installation tutorial of...
Mapping the mouse position or implementing drag e...
A joint index is also called a composite index. F...
The TextBox with the ReadOnly attribute will be di...
This article mainly introduces the method of CSS ...
Table of contents 1 Question 2 Methods 3 Experime...
MySQL dynamically modify replication filters Let ...
Docker is becoming more and more mature and its f...