随笔分类 -  Vue

摘要: 阅读全文
posted @ 2021-01-17 10:05 伊凡晴天 阅读(1112) 评论(0) 推荐(0) 编辑
摘要:解决方案一 v-for(v,k)括号后面这里要加空格,不能贴着in,否则会报错 1 <body> 2 3 <section id="app"> 4 <table v-for='(item,index ) in monster'> 5 <tr> 6 <th>名称</th> 7 </tr> 8 <tr> 阅读全文
posted @ 2021-01-17 09:21 伊凡晴天 阅读(1255) 评论(0) 推荐(0) 编辑
摘要:解决方案 v-for应该写在#app定义的内部,而不是平级 错误的代码,v-for 写在了#app平级 1 body> 2 3 <section id="app" v-for='item in monster'> 4 <table> 5 <tr> 6 <th>名称</th> 7 </tr> 8 <t 阅读全文
posted @ 2021-01-17 09:09 伊凡晴天 阅读(685) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示