let color = { 01: "粉红", 21: "黄红" }
请教,如何匹配“粉红”,返回01?
收起
for(let ele in color){ if(color[ele]==="粉红"){ console.log(ele) } }
报告相同问题?