<template>
<view>
<view v-for="stuObj in student"> 学生姓名: {{stuObj.name}},学生年龄:{{stuObj.age}}</view>
<view>
学生技能:
<view v-for = "sk in stuObj.skill">
{{sk}},
</view>
</view>
</view>
</template>
<script>
export defalut{
data(){
return{
studentArray:[
{
name: jack,
age:18,
skill: ["java","css","rap"]
},
{
name: rose
age:18,
skill: ["java","dance","rap"]
},
{
name: Dereak
age:18,
skill: ["baseball","css","rap"]
},
{
name: Demone
age:18,
skill: ["java","rap"]
}
]
}
}
}
</script>