摘要: 1 //用add方法替换sub方法 2 function add(a,b){ 3 console.log(a+b) 4 } 5 function sub(a,b){ 6 console.log(a-b) 7 } 8 add.call(sub,3,1); 9 10 //c1的方法放到c2上执... 阅读全文
posted @ 2014-11-21 17:52 认真de风 阅读(1287) 评论(0) 推荐(0) 编辑