2016年2月17日
摘要: call和apply作用就是改变this的指向,可以让一个对象调用其他对象的方法 先看一个例子: function fun(){ } fun.prototype={ name:"Mark", say:function(){ alert("Name is "+this.name) } } var fu 阅读全文
posted @ 2016-02-17 15:02 熏风 阅读(152) 评论(0) 推荐(0) 编辑