我对Vuejs还不太熟悉,需要通过'id'引用来访问'label'。
const Wizard_steps = ref([ { id: 1, 标签: "第 1 步" }, { id: 2, 标签: "第 2 步" }, { id: 3, 标签: "第 3 步" } ]) const currentstep = ref([编号])
如果currentstep === 2,我想访问"step 2"的数据,我尝试过:
wizard_steps.filter(id=2).label
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号