uni.showToast 文本换行
时间: 2023-10-20 14:27:34 浏览: 200
详解微信小程序开发之——wx.showToast(OBJECT)的使用
5星 · 资源好评率100%
uni.showToast文本换行可以使用\n来实现。例如:
uni.showToast({
title: '这是第一行\n这是第二行',
icon: 'none',
duration: 2000
})
其中\n表示换行,将文本分为多行显示。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [详解微信小程序开发之——wx.showToast(OBJECT)的使用](https://download.csdn.net/download/weixin_38592332/14878023)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [小程序复制功能wx.setClipboardData,换行](https://blog.csdn.net/weixin_40762926/article/details/108531531)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文