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