title: Taro.scanCode(OBJECT)
sidebar_label: scanCode
使用方式同 wx.scanCode,h5端仅支持微信公众号(API以小程序为准),支持 Promise 化使用。
示例代码
import Taro from '@tarojs/taro'Taro.scanCode(params).then(...)
API支持度
| API | 微信小程序 | H5 | React Native |
|---|---|---|---|
| Taro.scanCode | ✔️ | ✔️ |
title: Taro.scanCode(OBJECT)
使用方式同 wx.scanCode,h5端仅支持微信公众号(API以小程序为准),支持 Promise 化使用。
import Taro from '@tarojs/taro'Taro.scanCode(params).then(...)
| API | 微信小程序 | H5 | React Native |
|---|---|---|---|
| Taro.scanCode | ✔️ | ✔️ |
若有收获,就点个赞吧
0 人点赞
让时间为你证明