var data = { timeout: 20 // 超时时间,单位秒 } webCamera.getQrCode(data, function (data) { console.log(data) }, function (err) { console.log(err) })