在一个组件中,我有这些数组:
export default {
data() {
return {
userGrades: [
[course= "Mathematics"], [grade = 18 ],
[course= "Physics"], [grade = 15 ],
],
userSubscriptions: [
[option= "Swiming Pool"], [price = 60 ],
[option= "Fiteness Club"], [price = 30 ],
],
userContact: [(phone = "00000000"), (fax = "11111111")],
}
我想使用 neted v-for 指令来列出它们。使用单个数组,这很简单,但是当我使用嵌套的 v-for 时,代码会编译,但没有呈现任何内容