• 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>
  • 相关阅读:
    实现文档AI搜索,提高问题解决效率
    第六章:面向对象编程(基础部分)
    【笔记】Ningx(9)HTTPS
    一行代码解决Three.js中只能在一侧看到物体的问题
    Etcd教程 — 第九章 Etcd之实现分布式锁
    【leetcode】754.到达终点的数字
    linux C读写锁
    文件编辑器、用户管理,嘎嘎学
    Springboot - 15.二级分布式缓存集成-Caffeine
    计算机网络-计算机网络的体系结构
  • 原文地址:https://blog.csdn.net/weixin_43743175/article/details/133775984