window.location.href = `sms:10086?body=${encodeURIComponent('Hello, 测试短信发送')}`
ios
- window.location.href = `sms:10086&body=${encodeURIComponent('Hello, 测试短信发送')}`
-
- //或者
-
- window.location.href =`sms:/open?addresses=10086&body=${encodeURIComponent('Hello, 测试短信发送')}`;
- <template>
- <view @click="openNewSmsPage">view>
- template>