小程序-拨打电话

时间:2019-12-21 11:40:42   收藏:0   阅读:99
     <button bindtap="phonecall">拨打电话</button>


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

 

原文:https://www.cnblogs.com/wuqilang/p/12076030.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!