WeChat Mini Program API Scan QR Code


wx.scanCode(OBJECT)


Call up the client code scanning interface, and return the corresponding results after successful scanning

Object Parameter description:

QQ截图20170208114443.png

success return parameter description:

QQ截图20170208114457.png

Sample code:

wx.scanCode({
  success: (res) => {    console.log(res)
  }
})