mirror of
https://github.com/Leo501/CocosCreatorTutorial.git
synced 2026-05-09 15:18:40 +08:00
完善生成二维码
This commit is contained in:
@@ -9,6 +9,7 @@ cc.Class({
|
||||
},
|
||||
|
||||
init(url){
|
||||
//注意 最好把qrImage与qrcode的节点长宽设置为2的倍数。不然可能会出现无法识别二维码
|
||||
var ctx = this.node.addComponent(cc.Graphics);
|
||||
if (typeof (url) !== 'string') {
|
||||
console.log('url is not string',url);
|
||||
|
||||
Reference in New Issue
Block a user