ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 声明式渲染-t04 >代码: ~~~ <template> <div id="app-4"> <ol> <li v-for="todo in todos"> {{ todo.text }} </li> </ol> </div> </template> <script> export default { data() { return { todos: [ { text: '学习 JavaScript' }, { text: '学习 Vue' }, { text: '整个牛项目' } ] } } } </script> ~~~ > 结果如图: ![](https://box.kancloud.cn/fb59370527302364ba82e54578a4e77c_332x143.png)