• vue移动端H5调起手机发送短信(兼容ios和android)


    移动端h5页面调起手机发送短信功能,ios和android的兼容写法不一样。

    android

    window.location.href = `sms:10086?body=${encodeURIComponent('Hello, 测试短信发送')}`

     ios

    1. window.location.href = `sms:10086&body=${encodeURIComponent('Hello, 测试短信发送')}`
    2. //或者
    3. window.location.href =`sms:/open?addresses=10086&body=${encodeURIComponent('Hello, 测试短信发送')}`;
    1. <template>
    2. <view @click="openNewSmsPage">view>
    3. template>
  • 相关阅读:
    想用最快的方法从很多名单中搜到符合条件的人
    配置阿里云镜像加速器 -docker
    我的Vue之旅、01 深入Flexbox布局完全指南
    Spring Cloud 学习笔记(3 3)
    神舟电脑怎么清理缓存文件?介绍几种简单有效方法
    MySQL关于查询条件中:字符串类型的值忽略英文字母的大小写以及字符串尾部包含空格的问题
    最短路径算法之三:多源带权图,Floyd算法,python实现
    考试宝导出文件
    人工神经网络教学视频第三版,人工神经网络教程
    解决ARouter路由There‘s no route matched!Path =[/xxxxx/xxxx]Group = [xxxxx] 跳转 提示的吐司
  • 原文地址:https://blog.csdn.net/weixin_43743175/article/details/133775984