Skip to main content

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

NameType
schemastring

Returns

boolean