Vue小练习 02

用table标签渲染下面的数据, 最后一列为总分, 第一列为排名

scores = [
        {name: 'Bob', math: 97, chinese: 89, english: 67},
        {name: 'Tom', math: 67, chinese: 52, english: 98},
        {name: 'Jerry', math: 72, chinese: 87, english: 89},
        {name: 'Ben', math: 92, chinese: 87, english: 59},
        {name: 'Chan', math: 47, chinese: 85, english: 92},
    ]



    
    



No. Name Math Chinese English SumScore
{{ i+1 }} {{ v }}

你可能感兴趣的:(Vue小练习 02)