react
暮雪寒寒
这个作者很懒,什么都没留下…
展开
-
Each child in an array or iterator should have a unique "key" prop.
Check the render method of `MsContractListList`. See https://fb.me/react-warning-keys for more information. in div (created by MsContractListList) in MsContractListList (created by MsContrac...原创 2018-11-08 19:42:59 · 772 阅读 · 0 评论 -
React提交请求页面重复刷新
React+ant desin,提交请求的时候页面重复刷新原因:使用了form的提交,form的提交默认刷新页面解决方案:改用普通的onClick事件,或者使用preventDefault阻止事件蔓延。下附上修改后代码事件代码 /** * 点击查询 * 校验通过后把数据提交到上层组件 */ public handleSubmit = (e: any) ...原创 2018-11-12 20:04:07 · 3692 阅读 · 0 评论 -
React经验收集贴
react路由的使用传值React Router页面传值的三种方法转载 2018-11-23 15:08:42 · 142 阅读 · 0 评论 -
React+redux+ts下使用Promise
在es6+ts语言环境下,react+redux使Promise/** * 打开或者关闭付款页面(按钮动作) */ public showPayModal = () => { new Promise((succ) => { this.props.executeGetBillCountByIds({billIds:"这里传递账单 ids",su...原创 2018-11-27 15:43:16 · 997 阅读 · 0 评论 -
React页面传递参数(react单页面跳转和react打开新窗口)
react route 页面跳转参数传递(4.0版本)React页面跳转传递参数,react打开新页面传递参数我将通过下面代码来说明。首先两者传递参数方式区别不大,我将通过react Link标签来为大家说明,废话不多说,上代码下面代码块是父级页Link代码示例,此时传递的数据存放在RouteComponentProps.history.location中,所以页面需要继承RouteC...原创 2018-11-28 14:47:22 · 18327 阅读 · 0 评论