wx.canIUse();

微信文档中定义在API中,可以理解为一个函数

返回值: true 或者 false

 

示例:

// 在JS文件的函数中进行使用
console.log(wx.canIUse('console.log'));
// 输出:true

相关文章:

猜你喜欢
  • 2021-08-25
  • 2021-05-26
  • 2022-12-23
  • 2021-12-25
  • 2021-12-18
  • 2021-12-05
相关资源
相似解决方案