当前位置:网站首页>Uniapp——拨打电话、发送短信
Uniapp——拨打电话、发送短信
2022-07-28 02:23:00 【一只漫步前行的羊】
1. 拨打电话
uni.makePhoneCall({
phoneNumber: "13666666666",
success() {
console.log("拨打成功")
},
fail() {
console.log("拨打失败")
}
})
2. 发送短信
let msg = plus.messaging.createMessage(plus.messaging.TYPE_SMS)
msg.to = ['13666666666']
msg.body = 'Hello'
plus.messaging.sendMessage(msg)
【权限选择】

边栏推荐
- 嵌入式开发:提示和技巧——用C进行防御性编程的最佳实践
- Superparameter adjustment and experiment - training depth neural network | pytorch series (26)
- Building of APP automation environment (I)
- clientY vs pageY
- els 定时器
- 【AcWing 327. 玉米田】状压dp
- 社恐适合什么工作?能做自媒体吗?
- 【2022牛客多校2 K Link with Bracket Sequence I】括号线性dp
- Which of the four solutions of distributed session do you think is the best?
- NPDP candidates! The exam requirements for July 31 are here!
猜你喜欢

Opengauss Developer Day 2022 sincerely invites you to visit the "database kernel SQL Engine sub forum" of Yunhe enmo

QFileDevice、QFile、QSaveFile、QTemporaryFile

Es6.--promise, task queue and event cycle

GAMES101复习:光线追踪(Ray Tracing)

The test post changes jobs repeatedly, jumping and jumping, and then it disappears

数据湖:海量日志采集引擎Flume

R 笔记 MICE

Is it you who are not suitable for learning programming?

嵌入式开发:提示和技巧——用C进行防御性编程的最佳实践

Original title of Blue Bridge Cup
随机推荐
Oracle basicfile lob field space recycling shrink space doubts
CSDN TOP1“一个处女座的程序猿“如何通过写作成为百万粉丝博主?
为什么登录时,明明使用的是数据库里已经有的账号信息,但依旧显示“用户不存在”?
线程基础
Promise object
Interview experience: first tier cities move bricks and face software testing posts. 5000 is enough
RTSP/Onvif协议EasyNVR视频平台一键升级方案的开发设计逻辑
【2022牛客多校2 K Link with Bracket Sequence I】括号线性dp
Confusion matrix in CNN | pytorch series (XXIII)
【stream】并行流与顺序流
Trivy [1] tool scanning application
openGauss源代码,用什么IDE工具管理、编辑、调试?
Vscode debug displays multiple columns of data
NPDP candidates! The exam requirements for July 31 are here!
MySQL索引学习
Original title of Blue Bridge Cup
Es6.--promise, task queue and event cycle
clientY vs pageY
数据中台建设(三):数据中台架构介绍
四、固态硬盘存储技术的分析(论文)