1.callbacks.add(callbacks)//回调列表中添加一个回调或回调的集合 // a sample logging function to be added to a callbacks list var foo = function( value ){ console.log( 'foo:' + value ); } // another function to also be added to the list var bar = function( value ){ con…