摘要: 1 /* 2 * 回调函数: 执行一个函数 A 的时候 有可能执行另外的函数B ,这个 B 就是回调函数 3 * call apply 4 * 可以调用其他的方法 ,并且改变 this 的指向 5 */ 6 7 var found = document.getElementById("outer"); 8 9 var myApp = {};10 myApp.color = "green";11 myApp.paint = function(node){12 node.style.color = t... 阅读全文
posted @ 2013-09-10 11:00 楚玉 阅读(141) 评论(0) 推荐(0) 编辑