2020年5月20日

module.exports/exports和module.export/export default {}

摘要: module.exports/exports和module.export/export default {} 阅读全文

posted @ 2020-05-20 14:21 左侧岚 阅读(116) 评论(0) 推荐(0) 编辑

react-router 点击左侧栏 路由传参 路由跳转携带参数 两个左侧栏进入同一个组件 可以知道点击的哪个左侧栏进入的组件 react-router-dom多路由共用一个组件时 切换页面地址 页面不刷新的问题

摘要: import {Provider} from 'react-redux' import {Router, hashHistory, Route, IndexRoute, Switch} from 'react-router'; import store from 'redux/store.js'; 阅读全文

posted @ 2020-05-20 11:33 左侧岚 阅读(494) 评论(0) 推荐(0) 编辑

封装ajax

摘要: import Logger from "./Logger"; //日志 import superagent from "superagent"; //superagent import globalConfig from "../config"; //config.js const logger = 阅读全文

posted @ 2020-05-20 10:22 左侧岚 阅读(172) 评论(0) 推荐(0) 编辑

React `${}` 格式

摘要: //config.js module.exports = { getAPIPath() {} } import globalConfig from "../config"; `${globalConfig.getAPIPath()} `` 创建一个字符串 不需要使用字符串连接 // Current 阅读全文

posted @ 2020-05-20 10:19 左侧岚 阅读(2239) 评论(0) 推荐(0) 编辑

echarts-for-react

摘要: import React from "react"; import ReactEcharts from "echarts-for-react"; class TaskChart extends React.PureComponent { getOption() { var symbolSize = 阅读全文

posted @ 2020-05-20 10:04 左侧岚 阅读(2019) 评论(0) 推荐(0) 编辑

React 列表 瀑布流 修改样式瀑布流不起效果

摘要: React 列表 瀑布流 阅读全文

posted @ 2020-05-20 09:48 左侧岚 阅读(433) 评论(0) 推荐(0) 编辑

2020年5月19日

前端技术栈

摘要: typeScript webSocket 需要长连接 实时通信的场景 webStorm h5 微信小程序 webapp 工程化 webpack typescript/babel + flow 组件化 Vue React 数据流 redux 懒加载 json-sever 自动化管理工具 webpack 阅读全文

posted @ 2020-05-19 22:21 左侧岚 阅读(479) 评论(0) 推荐(0) 编辑

React 技术栈

摘要: redux reducer 纯函数 store react-redux react-router Flux 生命周期 组件传值 props WebSocket 中间件 applyMiddlewares redux-thunk redux-promise 高阶组件 jsx语法糖 diff算法 immu 阅读全文

posted @ 2020-05-19 20:55 左侧岚 阅读(144) 评论(0) 推荐(0) 编辑

2020年5月8日

自定义点击body 退出登录url隐藏

摘要: body上 aaaa(){ if(document.getElementById("B").style.display == 'block'){ document.getElementById("B").style.display = 'none'; }else if(document.getEle 阅读全文

posted @ 2020-05-08 14:51 左侧岚 阅读(107) 评论(0) 推荐(0) 编辑

2020年4月26日

import 'element-ui/lib/theme-default/index.css'报错

摘要: https://www.jianshu.com/p/32a5edadc29d 阅读全文

posted @ 2020-04-26 11:11 左侧岚 阅读(214) 评论(0) 推荐(0) 编辑

导航