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"))  },

效果图
小程序
微信小程序交流群:111733917 | 微信小程序从0基础到就业的课程:https://edu.csdn.net/topic/huangjuhua

欢迎大家收看我的视频教程:微信小程序常用API使用

小程序

TAG标签: 微信小程序caniuse

http://www.xiaochengxub.com/read-104886.html