版权声明:黄菊华 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