Fork自 DCloud / uni-app
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
import { hasOwn } from 'uni-shared' import platformSchema from 'uni-platform/helpers/can-i-use' // TODO 待处理其他 API 的检测 export function canIUse (schema) { if (hasOwn(platformSchema, schema)) { return platformSchema[schema] } return true }