js中apply方法的使用1、对象的继承,一般的做法是复制:Object.extendprototype.js的实现方式是:Object.extend = function(destination, source) { for (property in source) { destination[p... Read More
posted @ 2014-08-25 22:31 taxuexunmei77 Views(159) Comments(0) Diggs(0) Edit
js callcall 方法 请参阅 应用于:Function 对象 要求 版本 5.5 调用一个对象的一个方法,以另一个对象替换当前对象。 call([thisObj[,arg1[, arg2[, [,.argN]]]]]) 参数 thisObj 可选项。将被用作当前对象的对象... Read More
posted @ 2014-08-25 21:50 taxuexunmei77 Views(178) Comments(0) Diggs(0) Edit