想問(wèn)一下,我這個(gè)寫(xiě)法到底哪里出錯(cuò)了?為什么測(cè)試不對(duì)呢phoneticLookup("alpha")應(yīng)該等于 "Adams"phoneticLookup("bravo")應(yīng)該等于 "Boston"phoneticLookup("charlie")應(yīng)該等于 "Chicago"phoneticLookup("delta")應(yīng)該等于 "Denver"phoneticLookup("echo")應(yīng)該等于 "Easy"phoneticLookup("foxtrot")應(yīng)該等于 "Frank"phoneticLookup("")應(yīng)該等于 undefined不能使用 case, switch, 或 if 語(yǔ)句
JavaScript 使用對(duì)象進(jìn)行查找值
喵喵時(shí)光機(jī)
2018-07-10 13:13:01