在computed里先做好判断,这里过滤的成本远比v-if的成本低ListArr(){ return this.list.filter((_,index) => index === 1) } } }; </script> <style ...
確定! 回上一頁