摘要: v-for1、普通数组<p v-for="v in list">{{ v }}</p><p v-for="(v,k) in list">索引值:{{k}} 数值:{{ v }}</p>2、索引数组<p v-for="(v,k) in list2">id值{{ v.id }}=>{{ v.name } 阅读全文
posted @ 2019-08-01 17:18 王为龙 阅读(6982) 评论(0) 推荐(0)
摘要: 一、添加class<style> .red{color: skyblue;} .thin{font-weight: 200;} .italic{font-style: italic;} .active{letter-spacing: 0.5em}</style> 1.第一种使用方式,直接传递一个数组 阅读全文
posted @ 2019-08-01 15:46 王为龙 阅读(15839) 评论(0) 推荐(1)