Home
Sign Up
Sign In
V2EX
›
问与答
html 字符串转为 Weex 富文本
1752146907
·
Jul 11, 2018
· 2915 views
This topic created in 3036 days ago, the information mentioned may be changed or developed.
假如请求返回了一段 Html 字符串想实现富文本,如何把 html 字符串转为 Weex 能识别的内容?
字符
HTML
weex
文本
1 replies
•
2018-07-11 23:01:46 +08:00
1
rccoder
Jul 11, 2018
两种方式
1. Weex 提供了 Web 标签
2. 写解释器强行把 html 的东西转换成 div text 啥的(处理不好应该很容易白屏)
----
建议:能结构化就结构化吧。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
2848 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 41ms ·
UTC 13:41
·
PVG 21:41
·
LAX 05:41
·
JFK 08:41
♥ Do have faith in what you're doing.
❯