当前位置:网站首页>Wechat applet text built-in component newline character does not newline reason

Wechat applet text built-in component newline character does not newline reason

2022-06-11 05:31:00 aliven1

adopt response, View the data source returned from the server , Whether the newline part is :\n, If it is \n, By means of escape , It becomes an ordinary string \n, So there will be no line breaks

Solution :

  • Regular substitution
  • stay wxml quote wxs, Implement content filtering :wxs Just grammar and js Medium es5 similar , It's actually another language
     Insert picture description here
    wxs Use regular , Add a space at the beginning of a new line
     Insert picture description here

 Insert picture description here

原网站

版权声明
本文为[aliven1]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206110528411709.html