微信小程序api视频课程-基础-wx.canIUse的使用

版权声明:黄菊华 https://blog.csdn.net/u013818205/article/details/88655152

js代码

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    console.log(wx.canIUse("button"))
    console.log(wx.canIUse('button.open-type.getPhoneNumber'))
    console.log(wx.canIUse("button.open-type.share"))
  },

效果图
在这里插入图片描述

欢迎大家收看我的视频教程:微信小程序常用API使用
https://edu.csdn.net/course/detail/16194
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/u013818205/article/details/88655152