会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
zhangbao_online
博客园
首页
新随笔
联系
订阅
管理
2019年6月15日
微信小程序, 解析↵换行
摘要: 获取到json中的数据,通过“\n”转义,此时我们需要通过正则表达式来替换一下 replace(/↵/g, '\n'); 在页面中可以这样 <text class="test-title">我长得好看 \n 我长得也好看</text> <text class="test-title">我长得好看 \
阅读全文
posted @ 2019-06-15 16:20 zhangbao_online
阅读(987)
评论(0)
推荐(0)
编辑
公告