1. 首页
  2. 数据库
  3. 其它
  4. js_ordering food 源码

js_ordering food 源码

上传者: 2021-05-05 12:43:05上传 ZIP文件 4.05KB 热度 9次
点食物 这是10种食物: 苹果 面包 萝卜 水饺 蛋 鱼 蒜 蜂蜜 冰淇淋 果酱 创建store.js 。 出口: 店铺 动作:{MOVE_UP,MOVE_DOWN,SELECT,} (*)actionCreators:{moveUp,moveDown,选择} const { store, actions } = require('store'); const initialState = store.getState(); store.dispatch({ type: actions.SELECT, index: 0 }); store.dispatch({ type: actions.MOVE_DOWN }); store.dispatch({ type: actions.MOVE_DOWN }); const updatedState = store.getState();
下载地址
用户评论