search

Home  >  Q&A  >  body text

In TodoDispatcher.js, a TypeError: TodoDispatcher.regeist is not a function error occurs. How to solve it?

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();            //�%

阿黎阿黎1829 days ago1382

reply all(0)I'll reply

No reply
  • Cancelreply