import {Dispatcher} from 'flux';//引用storeimport Store from '../stores/TodoStore';const TodoDispatcher=new Dispatcher();TodoDispatcher.regeist(function(action){ switch (action.actionType) { case "ADD_TODO": Store.addTodoData(action.payload); Store.emitChange(); //調用store break; default: //其他 break; }})導出默認TodoDispatcher;