小程序wx.showToast()方法实现文字换行

小程序wx.showToast()方法实现文字换行

  在文字中间加上  '\r\n'

  

wx.showToast({
     title: `换行前内容\r\n换行后内容`,
     icon: 'none'
 })

 

转载于:https://www.cnblogs.com/memphis-f/p/9909629.html

你可能感兴趣的:(小程序wx.showToast()方法实现文字换行)