![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
React
zsr228
这个作者很懒,什么都没留下…
展开
-
Hello SmartWeb and React
准备开始写博客了,先来试试水原创 2016-09-20 11:09:56 · 601 阅读 · 0 评论 -
Ant-design 快速入门
1、下载node.js4.x及以上,然后安装。2、安装后在win+r输入npm install antd-init –g 安装antd3、创建ant-demo 输入mkdirantd-demo 创建demo4、cd antd-demo5、安装npm依赖 输入 antd-init --typeplain-react 此时会产生一些文件 将以下代码替换antd-dem原创 2016-09-23 09:32:39 · 34899 阅读 · 5 评论 -
React-Modal初体验
效果是弹出Modal 实现如下: ConstApp = React.createClass( getInitialState(){ visible:false, text:’’,},showModal(record,i原创 2016-09-26 15:47:12 · 2842 阅读 · 1 评论 -
Ant-design-Table
1、将表格以组件形式加入到页面中:实现功能有分页显示和隐藏展开2、代码思路如下:let Component_Table = React.createClass({ render(){ const columns = [{ key:’’, name:’’, age:’’, address:’’, desc:’’, hide:’’ }];//表格列 const原创 2016-10-24 17:02:35 · 6470 阅读 · 2 评论 -
React-Form表单数据获取
1、 const { getFieldProps } = this.props.form;2、 //类似给input一个stringName3、 this.props.form.getFieldsValue();//获取所有stringName的值4、 this.props.form.getFieldValue(‘userName’);//获取单个控件的值const For原创 2016-09-29 15:38:53 · 28407 阅读 · 0 评论