y***@163.com
y***@163.com
  • 发布:2017-05-24 09:17
  • 更新:2017-05-24 09:17
  • 阅读:1448

barcode相册识别二维码出错

分类:Native.js
        document.getElementById("scanPicture").addEventListener('tap', function() {  
                plus.gallery.pick(function(path) {  
                    console.log(path);  
                    plus.barcode.scan(path.toString(), onmarked, function(error) {  
                        plus.nativeUI.alert("无法识别此图片");  
                    });  
                }, function(err) {  
                    plus.nativeUI.alert("Failed: " + err.message);  
                });  
            })

可以读取图片路径,scan不执行,提示错误:Uncaught SyntaxError: Invalid or unexpected token

2017-05-24 09:17 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复