|
我这样写,有错吗!!! alert(JSON.stringify(ret)); 会弹出三次,第一次弹出eventType为show,第二次弹出eventType为success,第三次弹出eventType为show ,为什么会执行第三次eventType为show啊,求大神指教啊!!!!!
$(function(){
//扫二维码
$('.m-apptop-zyfw .pico-sao').click(function(){
var FNScanner = api.require('FNScanner');
FNScanner.openScanner({
autorotation: true
}, function(ret, err) {
if(ret.eventType == 'success'){
api.openWin({
name: 'saowin',
url: ret.content,
});
}
});
});
});
|
|
|