上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 44 下一页
摘要: react为我们提供了两种获取value的方法 第一种:非受控方法获取 import React,{Component} from 'react' export default class system extends Component{ constructor(props){ super(pro 阅读全文
posted @ 2020-03-31 10:00 龙卷风吹毁停车场 阅读(1796) 评论(0) 推荐(0)
摘要: 来看示例 我在Login自定义组件中引入了自定义组件system import React, { Component } from 'react'; import SYSTEM from './system' export default class Login extends Component{ 阅读全文
posted @ 2020-03-30 18:03 龙卷风吹毁停车场 阅读(591) 评论(0) 推荐(0)
摘要: 首先我们先来看下面这个示例: html部分 <el-input ref="label" v-show="showLabel" v-model="ruleForm.label" @blur="btnBlur()" maxlength="5" show-word-limit ></el-input> < 阅读全文
posted @ 2020-03-30 16:11 龙卷风吹毁停车场 阅读(916) 评论(0) 推荐(0)
摘要: 父组件内 import React, { Component } from 'react'; import SYSTEM from './system' export default class Login extends Component{ constructor(props){ super(p 阅读全文
posted @ 2020-03-27 09:33 龙卷风吹毁停车场 阅读(895) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-26 15:21 龙卷风吹毁停车场 阅读(2720) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-26 15:15 龙卷风吹毁停车场 阅读(2667) 评论(3) 推荐(0)
摘要: 子组件的写法 父组件的写法 阅读全文
posted @ 2020-03-26 15:07 龙卷风吹毁停车场 阅读(202) 评论(0) 推荐(0)
摘要: 父组件的写法 子组件怎么接收了,如下 阅读全文
posted @ 2020-03-26 15:01 龙卷风吹毁停车场 阅读(335) 评论(0) 推荐(0)
摘要: 使用组件之前我们先创建组件,在src文件下随便新建一个xxxxx .js的文件 然后再index.js里面引入该组件 阅读全文
posted @ 2020-03-26 14:52 龙卷风吹毁停车场 阅读(145) 评论(0) 推荐(0)
摘要: 第一步:全局安装create-react-app cnpm i -g create-react-app 第二步:创建项目 create-react-app my_react my_react是项目名字 第三步:启动项目 cd my_react cnpm start 使用准备 删除src文件下的所有文 阅读全文
posted @ 2020-03-26 14:21 龙卷风吹毁停车场 阅读(189) 评论(0) 推荐(0)
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 44 下一页