Skip to content

基于qrcodejs的微信小程序二维码生成库

Notifications You must be signed in to change notification settings

LeungWinly/wx_program_QRCode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

wx_program_QRCode

基于qrcodejs的微信小程序二维码生成库

原本的qrCodejs在小程序上运行不了,因此对其进行了修改,并且删去不适用的代码

wxml

<canvas canvas-id="canvas" style="width: 300px; height: 300px"></canvas>

js

var qrcode = new QRCode('canvas', {
    text: 'http://jindo.dev.naver.com/collie',
    width: 300,
    height: 300,
    colorDark : '#000000',
    colorLight : '#ffffff',
    correctLevel : QRCode.correctLevel.H
});

qrcode.clear(); // clear the code.
qrcode.makeCode('http://naver.com'); // make another code.

About

基于qrcodejs的微信小程序二维码生成库

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%