摘要: You are given an object literal representing a part of your musical album collection. Each album has a unique id number as its key and several other p 阅读全文
posted @ 2022-09-10 16:56 枭二熊 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 将“return 'No such contact';”放在for循环里面: 注:下面例子中的contacts是一个数组,里面存放的是JS的对象。 function lookUpProfile(name, prop) { for (var i=0; i<contacts.length; i++) { 阅读全文
posted @ 2022-09-10 15:58 枭二熊 阅读(40) 评论(0) 推荐(0) 编辑