摘要: JQuery.proxy(function,context): 使用context代替function中的context。 比如: var you = { type: "person", test: function(event) { $("#log").append( this.type + " " ); } $("#test").click(you.test);调用这句只有相当于调用: $("#test").click(function(event){ $("#log") 阅读全文
posted @ 2012-11-20 16:41 acles 阅读(24236) 评论(4) 推荐(3) 编辑