decode 函数用于解码条形码图像文件并检索其值。如果无法解码条形码,则该函数返回 null。
decode
null
var msg = barcode.decode("test.png");
barcode. decode ( imagePath )
String
imagePath