首先下载 npm 包: npm install angular2-qrcode 在模块中引入: 组建中增加要转成二维码的数据: 界面调用: 最终效果: 来源:https://www.cnblogs.com/guofan/p/11970316.html 标签 二维码