var foo = { count :0, 'method' : function(data) { this.count++; if(this.count == 10) { timer.cancel(); } console.log(this.count); }} var timer = YAHOO.lang.later(1000, foo, 'method', [{data:'bar', data2:'zeta'}], true);`
沒有留言:
張貼留言