10 2018 档案

摘要:var f = () => 5;// 等同于var f = function () { return 5 }; var sum = (num1, num2) => num1 + num2; var sum = (num1, num2) => { return num1 + num2}; // 等同于 阅读全文
posted @ 2018-10-29 00:14 fsdzh 阅读(114) 评论(0) 推荐(0)
摘要:npm config set registry https://registry.npm.taobao.org-- 配置后可通过下面方式来验证是否成功 npm config get registry-- 或npm info express 阅读全文
posted @ 2018-10-21 19:18 fsdzh 阅读(115) 评论(0) 推荐(0)
摘要:win+R 输入 %appdata% 删掉应用程序数据 阅读全文
posted @ 2018-10-20 18:12 fsdzh 阅读(262) 评论(0) 推荐(0)
摘要:页面没加 table会多出一些默认样式 阅读全文
posted @ 2018-10-16 12:00 fsdzh 阅读(329) 评论(0) 推荐(0)
摘要:更新Redux中状态的流程是这样的:action -> reducer -> new state。 每次action被触发(dispatch),reducer就会同步地对store进行更新 action: 指全局发布的动作指令,主要就是定义所有事件行为的,例如: export const ADD_N 阅读全文
posted @ 2018-10-15 16:28 fsdzh 阅读(110) 评论(0) 推荐(0)
摘要:var p = new Promise(function(resolve, reject){ setTimeout(function(){ console.log('执行完成'); resolve('随便什么数据'); }, 2000);}); p.then(function(value){cons 阅读全文
posted @ 2018-10-15 12:14 fsdzh 阅读(86) 评论(0) 推荐(0)