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

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

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

  

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

猜你喜欢

转载自www.cnblogs.com/memphis-f/p/9909629.html