對不起,對于某人來說可能很容易,但是我如何從這個數(shù)組中獲得價值呢? this.optionSelect = [{value: 'aa', name: 'ccc'}];我試過了 :console.log( this.optionSelect['value']);也`console.log( this.optionSelect[0]);`
如何從JavaScript數(shù)組中獲取項目
慕斯709654
2021-04-27 09:14:57