n=1时:
insurant: [
{
"insurantName": null,
"mobileTelephone": null,
"certificateNumber": null,
"sex": null,
"birth": null
}
]
n=2时:
insurant: [
{
"insurantName": null,
"mobileTelephone": null,
"certificateNumber": null,
"sex": null,
"birth": null
},
{
"insurantName": null,
"mobileTelephone": null,
"certificateNumber": null,
"sex": null,
"birth": null
}
]
初始化时
data(){
return {
insurant: []
}
}
当被保人数n是动态时,v-model="insurant[n].insurantName"会报错。这种情况该如何在template里绑定被保人insurant所有数据呢?求指教多谢
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
业精于勤,荒于嬉;行成于思,毁于随。