扫码枪扫描二维码,具体内容如下所示:
业务需求要将数据生成二维码,并用扫码枪扫出数据上传到服务端。
先上代码吧,之后再完善注意点
this.start = new Date().getTime()
let code = ''
let lastTime, nextTime
let lastCode, nextCode
let that = this
[removed] = function (e) {
if (window.event) { // IE
nextCode = e.keyCode
} else if (e.
1