Closed aushion closed 6 years ago
如果是HTML,可以直接使用 <RichText nodes={this.state.nodes} />
, this.state.nodes 可以是字符串,也可以是 Array, 参考代码
@zacksleo 可以的,我试了的确可行,RichText可以
最新版本的 beta 已经支持使用 wxParse
了,这是个例子
https://github.com/NervJS/taro-components-test/blob/master/src/pages/wxParse/wxParse.js
最新版本的 beta 已经支持使用
wxParse
了,这是个例子 https://github.com/NervJS/taro-components-test/blob/master/src/pages/wxParse/wxParse.js
为什么我用了以后解析不了link标签呢?
我封装的一个组件 随下随用 ,欢迎star
@zacksleo 可以的,我试了的确可行,RichText可以 但是RichText并不想wxparse那样图片自适应
@luckyadam 这个百度 和支付宝小程序支持吗
最新版本的 beta 已经支持使用
wxParse
了,这是个例子 https://github.com/NervJS/taro-components-test/blob/master/src/pages/wxParse/wxParse.js
copy代码回来,为什么加载不出来啊?
template这里还有报错
componentDidMount里可以正确拿到WxParse,求解!!控制台没有报错。
最新版本的 beta 已经支持使用
wxParse
了,这是个例子 https://github.com/NervJS/taro-components-test/blob/master/src/pages/wxParse/wxParse.jscopy代码回来,为什么加载不出来啊?
template这里还有报错
componentDidMount里可以正确拿到WxParse,求解!!控制台没有报错。
原因找到了:
在componentDidMount里同时setState,wxParse就无法渲染出内容
最新版本的 beta 已经支持使用
wxParse
了,这是个例子 https://github.com/NervJS/taro-components-test/blob/master/src/pages/wxParse/wxParse.js
请问template forbidden怎么办!!提交代码加了pre-commit的eslint检查,这个template forbidden,commit过不了。。😭
最新版本的 beta 已经支持使用
wxParse
了,这是个例子 https://github.com/NervJS/taro-components-test/blob/master/src/pages/wxParse/wxParse.js请问template forbidden怎么办!!提交代码加了pre-commit的eslint检查,这个template forbidden,commit过不了。。😭
问下我也使用了你同样的组件 但是我在H5的时候会报错。说找不到wx 你那边会报错吗?
taro怎么解析markdown
解析HTML和markdown