日期:2014-05-17 浏览次数:20566 次
BarcodeScanner.prototype.scan(
BarcodeScanner.Type.QR_CODE,
function(result) {
$("#barcodediv").html(""+result); //这局啥意思? 干嘛用的?
},
function(error) {
$("#barcodediv").html("扫描失败:"+result);
},
{
installTitle: "安装提示",
installMessage:"是否安装",
yesString:"确定",
noString:"取消!!!"
}
);
<body >
<h2>二维码扫描</h2>
<p>二维码信息:</p>
<div id="barcodediv"></div>
<input type="button" id="btnbarcode" value="扫描" />
</body>
BarcodeScanner.prototype.scan = function(types, success, fail, options)