首页  >  问答  >  正文

在TodoDispatcher.js中,会爆TypeError: TodoDispatcher.regeist is not a function错误,怎么解决呢

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;            默认:            //其他处理            break;     }})export default TodoDispatcher;

阿黎阿黎1813 天前1362

全部回复(0)我来回复

暂无回复
  • 取消回复