bn.canIUse
▸ canIUse(schema
): boolean
description
Determine if Mini Programs' APIs, callbacks, parameters, components, etc are available in the current version.
Parameter schema: - ${API}.${method}.${param}.${option}
example
bn.canIUse('console.log')
bn.canIUse('getSystemInfoSync')
Parameters
Name | Type |
---|---|
schema | string |
Returns
boolean