摘要: 在一个页面上定义一个片段,然后在不同的地方使用,相比组件更方便一点。 template 使用 name定义别名 ,使用 is 调用模板 别名。 <template name="msgItem"> <view> <text> {{index}}: {{msg}} </text> <text> Time 阅读全文
posted @ 2026-01-20 11:16 微宇宙 阅读(19) 评论(0) 推荐(0)