0
我在phonegap應用程序中使用phonegap-plugin-barcodescanner來掃描QR碼。Phonegap條形碼提示輸入值
當使用發射掃描:
function scan() {
cordova.plugins.barcodeScanner.scan(
function (result) {
alert("We got a barcode\n" +
"Result: " + result.text + "\n" +
"Format: " + result.format + "\n" +
"Cancelled: " + result.cancelled);
},
function (error) {
alert("Scanning failed: " + error);
}
);
}
相機無法啓動 - 我只是得到一個提示說:
"Enter barcode value (empty value will fire handler)"
任何想法表示歡迎TQ