摘要:
1.子组件header.vue <template> <div>头部</div></template> <script> export default{ data(){ return{ } } }</script> <style scoped> div{ background: blue; }</s 阅读全文
摘要:
<template> <div> <ul> <li v-for="(item,index) in cartoon" :key="index" :class="{'A':'red','B':'green','C':'yellow','D':'blue','E':'pink '}[item.score] 阅读全文