1.ich-text
富文本标签
1.可以将字符串解析成 对应标签,类似 vue中 v--html 功能

image.png
2.对象数组
Page({
data: {
//对象数组
html:[{
//1.什么标签
name:"div",
//2.属性
attrs:{
class:'my_div',
style:'color:red;'
},
children:[
{
name:'p',
attrs:{},
children:[{
type:"text",
text:"hello"
}]
}
]
}
]
}
})
其中那个type 和text 不要改变,虽然不是很懂为啥