扫码
调起客户端扫码界面进行扫码
ymx.scanCode({ scanType: ['barCode', 'qrCode']}).then(res => { alert(JSON.stringify(res));}); 复制
ymx.scanCode({ scanType: ['barCode', 'qrCode']}).then(res => { alert(JSON.stringify(res));});
ymx.scanCode({ onlyFromCamera: true}).then(res => { alert(JSON.stringify(res));}); 复制
ymx.scanCode({ onlyFromCamera: true}).then(res => { alert(JSON.stringify(res));});
扫码