11 2017 档案

摘要:react@15.5.0 react-router@3.0.2(react路由,4.x的差异还是比较大,暂时还是3.x的版本) antd@2.9.3(蚂蚁金服开源的react ui组件框架) axios@0.16.1(http请求模块,可用于前端任何场景,很强大👍) echarts-for-rea 阅读全文
posted @ 2017-11-20 17:15 huihui2014
摘要:指定404页面 指定404页面也非常简单,只需要在路由系统最后使用Route指定404页面的component即可 重定向 Redirect <Switch> <Route path="/" exact component={Home}/> <Route path="/user" component 阅读全文
posted @ 2017-11-15 15:16 huihui2014
摘要:// 修正误杀? 嘛看还有没有误杀的… var cssCode = '.thread_notice.thread_1st, /* 后面那些是兼容旧版贴吧用的w */#thread_list_table tr { display: none } #thread_list_table tr[tid] { display: table-row }'; var eStyle = document.cr... 阅读全文
posted @ 2017-11-10 14:58 huihui2014
摘要:index store目录下(包括 actions、reducers、sagas) 添加一个文件configureStore.js reducers目录下添加一个 index.js sagas目录下添加一个index,js 阅读全文
posted @ 2017-11-06 19:57 huihui2014
摘要:actions reducers sagas ajax 本地存储操作工具 Storage.js /** * 本地存储操作工具 * * @date 2017-05-09 * @author shuwenjie<4483378@qq.com> */ class DeviceStorage { stati 阅读全文
posted @ 2017-11-03 19:21 huihui2014
摘要:import React, { Component } from 'react' import PropTypes from 'prop-types' import ReactDOM from 'react-dom' import { createStore } from 'redux' import { Provider, connect } from 'react-redux' import... 阅读全文
posted @ 2017-11-03 19:19 huihui2014