如何在离子2中生成和显示QR码 [英] How to generate and display a QR Code in ionic 2
本文介绍了如何在离子2中生成和显示QR码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我找到了生成角度和离子1条形码的文档,但我需要在Ionic 2项目中生成一个。
I've found documentation for generating barcodes in angular and ionic 1, but I need to generate one in an Ionic 2 project.
推荐答案
安装以下NPM软件包,只需几行代码即可创建QR码。
Install the following NPM package to create QR codes with just a few lines of code.
ngx-qrcode2
ngx-qrcode2
供参考在生成和扫描二维码时,请通过以下链接 -
For reference on generation and scanning of QR Code, go through the following link-
https://ionicacademy.com/ionic-qr-code-generator-reader/
这篇关于如何在离子2中生成和显示QR码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文