04 2020 档案

摘要:obtainTime(){ let date = new Date(); let time = '' time+=date.getFullYear()+'-' time+=(date.getMonth()+1)>=10 ? (date.getMonth()+1) : '0'+(date.getMon 阅读全文
posted @ 2020-04-16 22:19 国服第一李师师 阅读(138) 评论(0) 推荐(0) 编辑
摘要:const express = require('express'); const app = express()先介绍一个中间件开发中经常碰到跨域问题 cors,通过use来使用中间件 const cors = require('cors'); app.use(cors()) 那我我们正常去使用j 阅读全文
posted @ 2020-04-09 14:00 国服第一李师师 阅读(109) 评论(0) 推荐(0) 编辑
摘要:redux工作流成: 在组建里通过dispatch触发action,reducer将产生新的state,通过createStore将reducer进行包裹,然后注册监听subscribe,创造的store对象能触发action,接受reducer传过来的新的state 阅读全文
posted @ 2020-04-06 11:49 国服第一李师师 阅读(183) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示