摘要: x 阅读全文
posted @ 2021-01-12 20:33 吴小明- 阅读(48) 评论(0) 推荐(0) 编辑
摘要: x 阅读全文
posted @ 2021-01-12 19:59 吴小明- 阅读(54) 评论(0) 推荐(0) 编辑
摘要: x 阅读全文
posted @ 2021-01-12 19:25 吴小明- 阅读(69) 评论(0) 推荐(0) 编辑
摘要: x 阅读全文
posted @ 2021-01-12 17:50 吴小明- 阅读(73) 评论(0) 推荐(0) 编辑
摘要: x 阅读全文
posted @ 2021-01-12 17:03 吴小明- 阅读(51) 评论(0) 推荐(0) 编辑
摘要: x 阅读全文
posted @ 2021-01-12 17:02 吴小明- 阅读(53) 评论(0) 推荐(0) 编辑
摘要: x 阅读全文
posted @ 2021-01-12 17:01 吴小明- 阅读(34) 评论(0) 推荐(0) 编辑
摘要: x 阅读全文
posted @ 2021-01-12 16:58 吴小明- 阅读(50) 评论(0) 推荐(0) 编辑
摘要: x 阅读全文
posted @ 2021-01-12 16:46 吴小明- 阅读(44) 评论(0) 推荐(0) 编辑
摘要: x 阅读全文
posted @ 2021-01-12 16:43 吴小明- 阅读(39) 评论(0) 推荐(0) 编辑
摘要: x 阅读全文
posted @ 2021-01-12 16:41 吴小明- 阅读(42) 评论(0) 推荐(0) 编辑
摘要: setState() 1、setState有两种写法 第一种:对象形式 this.setState({ count: count + 1 }, () => console.log(this.state.count)) 第二种:函数形式,返回一个对象。函数的第一个参数是state,第二个参数是prop 阅读全文
posted @ 2021-01-12 16:38 吴小明- 阅读(1190) 评论(0) 推荐(0) 编辑
摘要: antd基本使用 1、安装:npm i antd 2、引入和使用 import React, { Component } from 'react' import { Button, DatePicker } from 'antd' import { WechatOutlined, WeiboOutl 阅读全文
posted @ 2021-01-12 16:30 吴小明- 阅读(130) 评论(0) 推荐(0) 编辑
摘要: react脚手架的使用: 使用脚手架创建项目,前提是node版本14及以上: npx create-react-app react_staging public/index.html文件介绍: src文件介绍: 一个简单的组件: src/components/Hello/index.jsx impo 阅读全文
posted @ 2021-01-12 16:20 吴小明- 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 非受控组件和受控组件 非受控组件 class Login extends React.Component { render() { return ( <form onSubmit={this.onSubmit}> 用户名: <input ref={(ele) => (this.username = 阅读全文
posted @ 2021-01-12 15:53 吴小明- 阅读(128) 评论(0) 推荐(0) 编辑
摘要: react介绍: 用于动态构建用户界面的JavaScript库,由facebook开源 react特点: 1、声明式 命名式:获取dom,设置属性,等操作,每一步都要亲力亲为 声明式:告诉react想到达到的效果,react去处理 * 大部分ES5的方法都是声明式,例如forEach、map等,只需 阅读全文
posted @ 2021-01-12 15:52 吴小明- 阅读(168) 评论(0) 推荐(0) 编辑