observer里面 function one()是做什么的? 不太懂,什么情況會用到?
function one(event, fn) {
? ? ? ? this.bind(event, function fnc() {
? ? ? ? ? ? fn.apply(this, slice.call(arguments));
? ? ? ? ? ? this.unbind(event, fnc);
? ? ? ? });
? ? ? ? return this;
? ? }
這里面的this.bind是undefined的,應(yīng)該是on或者subscribe吧。
2016-01-12
http://www.cnblogs.com/TomXu/archive/2012/03/02/2355128.html?這里面有詳細(xì)介紹?
2015-12-24
用來監(jiān)聽第一個動畫