1.空格,换行

text你好!t七月流火啊!我在下一行/textt空格(多个只会显示一个空格)换行

2.连续空格

view     text space="ensp"你好 啊 哈哈哈(空格是中文字符一半大小)/text/viewview     text space="emsp"你好 啊 哈哈哈(空格是中文字符大小)/text /viewview     text space="nbsp"你好 啊 哈哈哈(空格根据字体设置)/text/viewview    text decode="{{true}}"你好 啊   哈哈哈(空格是中文字符一半大小)/text/viewview   text decode="{{true}}"你好 啊   哈哈哈(空格是中文字符大小)/text/viewview    text decode="{{true}}"你好 啊   哈哈哈(空格根据字体设置)/text/view

注:必须在text标签中

 

TAG标签: 微信小程序小程序换行

http://www.xiaochengxub.com/read-101588.html