• 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>
  • 相关阅读:
    KVM虚机添加磁盘
    rsync远程同步
    负载均衡 dubbo
    Java 接口提速 --持续更新
    29、Elasticsearch进阶查询
    工业通讯领域的总线、协议、规范、接口、数据采集与控制系统
    设计模式--职责链模式(Chain of Responsibility Pattern)
    KylinV10系统如何查找JDK路径和安装JDK
    Easyx介绍与安装
    Java开发篇——设计模式(5)装饰设计模式
  • 原文地址:https://blog.csdn.net/weixin_43743175/article/details/133775984