摘要:这个问题其实找了好多资料都没有具体的解决方法: 今天突然想到可能是层级嵌套出问题了,刚好有个bug也是关于这个的,已经亲测解决了 代码如下:火狐和谷歌都能正常的跳转
阅读全文
摘要:0.es6语法糖 Demo (ng2语法) 7.select //默认需要传入一个字符串,需要一个不重复的key 1.下拉菜单和单选按钮 2.格式化日期可以在两个位置处理, 第二种,在 3.日期组件:(默认显示当前日期,默认显示当前月的一号) 5.react 下拉选择框动态渲染模式 7.一个重要的标
阅读全文
摘要:/** * Created by hldev on 17-6-14. * 上市公司详情展示界面 */ import React, {Component} from "react"; import {Link} from "react-router-dom"; import {inject, observer} from "mobx-react"; import ReactEchar...
阅读全文
摘要:项目体系说明:react+mobx+antd 11. state设置对象属性 10.loading组件设置 9.模态框弹出时,需要传递参数应该怎么设置? 8.当切换路由后(切换了左侧导航栏后),用户在返回之前查询的结果界面,结果界面还会展示上一次的结果,应该如何处理呢? 7.Input.Search
阅读全文
摘要:5.el表达式 4.react中自定义完成某个操作后,跳转到列表展示界面 3 If using forceUpdate() is discouraged, how should components react to change events in the model? (2017-05-11)
阅读全文
摘要:参考:http://blog.csdn.net/yf275908654/article/details/51078215
阅读全文
摘要:先补充点一些其他的知识: 关于axios(以前用的jquer的ajax请求,现在大都推崇axios来代替) 参考地址:http://www.tuicool.com/articles/yINjEb6 项目框架用到的技术组合: 1.react+ant design+react-router+redux(
阅读全文
摘要:/** * 数据屏蔽 * Created by 2016-12-02. */ import React, {Component} from 'react'; export default class DataMaskingMain extends Component { render() { return ( ...
阅读全文
摘要:视频地址:http://www.imooc.com/learn/744
阅读全文
摘要:/** * 更新机构 * @param data * @return {function(*=): *} */export function updateOrgStatus(data, status) { return dispatch => requestJSON( dispatch, {meth
阅读全文
摘要:renderBreadcrumb() { const {routes} = this.props; const items = routes.map((route, idx) => { let content = null; if (idx == 0) { content = ...
阅读全文
摘要:解决办法: 加 promise polyfill 参考地址:http://hao.jser.com/archive/12066/
阅读全文
摘要:getDefaultProps doesn't work with ES6 syntax; warning is not helpful 解决后: 参考地址:https://github.com/facebook/react-native/issues/1772
阅读全文
摘要:2017-09-20 <FormItem {...formItemLayout} label="主机名" hasFeedback> {getFieldDecorator('hostName', { rules: [{ required: true, max: 20, message: '请输入主机名
阅读全文
摘要:原文地址:http://react-china.org/t/react/1740 参考地址:http://www.cnblogs.com/daomul/p/4856101.html
阅读全文
摘要:9. 8.img标签需要闭合 2016-11-16 14:44:40 编译通不过 正确写法:<img /> 7.map()遍历数组操作说明? map:和forEach非常相似,都是用来遍历数组中的每一项值的,用来遍历数组中的每一项; 区别:map的回调函数中支持return返回值;return的是啥
阅读全文