梦幻诛仙2团购: js知道value值的一個數組,根據字典關系數據篩選出對應的text值的數組

0
 梦幻诛仙手游丹青阁天书 www.rasug.icu 
var values = ['1','2','4'];
var data = [{value:'1',text:'清香1'},
            {value:'2',text:'清香2'},
            {value:'3',text:'清香3'},
            {value:'4',text:'清香4'},
            {value:'5',text:'清香5'},
            {value:'6',text:'清香6'}];
            

我需要得到 與values對應的text值的數組
例如:var texts = ['清香1','清香2','清香4'];

代碼希望簡潔,高效

請盡量讓自己的答案能夠對別人有幫助

3個答案

默認排序按投票排序
0

Hope you continue to share more of your ideas about coding in javascript.I will definitely love to read.  grandpa horror game

0

Great article. I found this much information, like what I'm looking for exactly. Thanks for such posts and please keep it up.

fnaf world???       

0

This is a great article. It gave me a lot of useful information. thank you very much. 
Vex 3 

相似問題

相關經驗

相關資訊

相關文檔