摘要: 1 /* 2 1.把函数作为参数、匿名函数作为参数传递到函数 3 */ 4 function dogEat(food) { 5 console.log("dog eat " + food); 6 } 7 8 function catEat(food) { 9 console.log("cat eat" + food); 10 } 11 12 func... 阅读全文
posted @ 2016-06-30 09:28 jht_newbie 阅读(173) 评论(0) 推荐(0) 编辑