当前位置:网站首页>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)
【权限选择】

边栏推荐
- Using pytorch's tensorboard visual deep learning indicators | pytorch series (25)
- Games101 review: ray tracing
- GAMES101复习:光线追踪(Ray Tracing)
- 满满干货赶紧进来!!!轻松掌握C语言中的函数
- Scheme sharing | experts gather to jointly explore accent AI speech recognition
- ECCV 2022 | open source for generative knowledge distillation of classification, detection and segmentation
- 分布式 session 的4个解决方案,你觉得哪个最好?
- 综合 案例
- My approval of OA project (meeting inquiry & meeting signature)
- Opengauss source code, what ide tools are used to manage, edit and debug?
猜你喜欢

一次跨域问题的记录

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

数据中台建设(三):数据中台架构介绍

Day 8 of DL

exness:日本物价上涨收入下降,英镑/日元突破 165

行业洞察 | 语音识别真的超过人耳朵了吗?

43.js -- scope chain

Using pytorch's tensorboard visual deep learning indicators | pytorch series (25)

智能工业设计软件公司天洑C轮数亿元融资

Unexpected harvest of epic distributed resources, from basic to advanced are full of dry goods, big guys are strong!
随机推荐
一次跨域问题的记录
RTSP/Onvif协议EasyNVR视频平台一键升级方案的开发设计逻辑
【ACwing 1064 小国王】状压dp
What kind of job is social phobia suitable for? Can you do we media?
Ah Han's story
[acnoi2022] one step short
Ci/cd from hardware programming to software platform
Redis群集
trivy【1】工具扫描运用
stm32F407-------FPU学习
谈一谈百度 科大讯飞 云知声的语音合成功能
[email protected]注解使用
Promise object
MySQL索引学习
数据湖:各模块组件
Distributed transaction Senta (I)
mysql 随笔
stm32F407-------DSP学习
微服务架构统一安全认证设计与实践
vscode debug显示多列数据