js知道value值的一个数组,根据字典关系数据筛选出对应的text值的数组

0
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'];

代码希望简洁,高效

请尽量让自己的答案能够对别人有帮助

13个答案

默认排序 按投票排序
0
待审核
0
0

Spinach
Antioxidants, anti-inflammatories, and vitamins that promote vision and bone health are what make this little ol' green so super . And those bones will be thanking spinach, too! Just one cup of the stuff packs up to 12 percent of the recommended daily dose of calcium and enough vitamin K to help prevent bone loss .
Hydralyft

0

Watermelon
Low in sugar and high in vitamins A and C, this summer treat is the prefect fresh, low-calorie snack. Studies suggest watermelon could also potentially lower blood pressure and reduce the risk of cardiovascular disease . And the lycopene in watermelon could help protect the body from UV rays and cancer .
GRS Ultra

0

 Salmon
This heart-healthy fish is packed with protein and a healthy dose of omega-3 fatty acids, which studies suggest may help reduce the risk of cardiovascular disease. And bonus points: Salmon may also protect skin from the sun and the damaging effects of UV rays .
Panalean

0

Strawberries
Vitamin C is the superstar of this superfood. Just one cup of these red beauties satisfies the daily requirement for vitamin C (74 milligrams per day for women, 90 for men)! Studies suggest the antioxidant helps build and repair the body's tissues, boosts immunity, and fights excess free radical damage. And the vitamin C in strawberries could help promote healthy eye function .
Bioleptin

0

Green Tea
This ages-old health secret has been used as a natural remedy for everything from cancer to heart disease ! The secret to this delicious drink? Antioxidants! The main superhero here is Epigallocatechin gallate, or EGCG, a phytochemical that slows irregular cell growth, which could potentially help prevent the growth of some cancers .
Masszymes

0

Oatmeal
High in fiber, antioxidants, and tons of other nutrients, this breakfast staple has been shown to help lower cholesterol levels, aid in digestion, and even improve metabolism . And it's downright delicious— especially when flavored like pumpkin pie!

P3 OM Probiotic

0

Chia
Ch-ch-ch-chia! Yep, this little seed is the same as those adorable little ceramic animal planters of the 90s! But don’t worry, the nutritious part is not the clay pot. Chia seeds are actually loaded with the most essential fatty acids of any known plant! Plus, one serving of the stuff is loaded with magnesium, iron, calcium, and potassium.
Ultra Omega Burn

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