摘要: 好一阵子前自己随便写的:js代码: //将method作用域绑定于一个目标 function makeCallback(method,target){ return function(){method.apply(target,arguments);} } //坐标点类 var point = function(x,y){ this.x = x; this.y = y; this.comp = function(tempPoint){ if(tempPoint.x==this.x&&tempPoint.y==this.y)return true; else return fal 阅读全文
posted @ 2012-12-19 23:44 plusice 阅读(300) 评论(0) 推荐(0) 编辑