编程语言
首页 > 编程语言> > 小程序-拨打电话

小程序-拨打电话

作者:互联网

     <button bindtap="phonecall">拨打电话</button>


        // js
        Page({
            phonecall:function(){
                wx.makePhoneCall({
                    phoneNumber: '1340000' //仅为示例,并非真实的电话号码
                })
            }
        })
注意:在宠物家中是封装成util中的phonecall方法了:
            phonecall: function (e) {
                util.phonecall('4000300011');
            },

 

标签:电话,function,示例,拨打,makePhoneCall,程序,phonecall,util
来源: https://www.cnblogs.com/wuqilang/p/12076030.html