![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
React
Aquarius-Baby
一边改BUG,一边写BUG。。。
展开
-
React学习10.父子组件之间的参数约束
import React, { Component } from 'react';import PropTypes from 'prop-types'class Header extends Component { constructor(props) { super(props); this.state = { msg: '我...原创 2020-02-01 10:58:58 · 216 阅读 · 0 评论 -
React学习9.父子组件之间参数的传递
文件1import React, { Component } from 'react';import Header from './Header'import Footer from './Footer'class News extends Component { constructor(props) { super(props); this....原创 2020-02-01 10:58:27 · 131 阅读 · 0 评论 -
React学习8.本地缓存提取公共组件
var storage = { set(key, value) { localStorage.setItem(key, JSON.stringify(value)) }, get(key) { return JSON.parse(localStorage.getItem(key)) }, remove(key) { ...原创 2020-02-01 10:57:59 · 585 阅读 · 0 评论 -
React学习7.todoList的实现及数据缓存实现
import React, { Component } from 'react';import { Checkbox } from 'antd';class TodoList extends Component { constructor(props) { super(props); this.state = { list: ...原创 2020-02-01 10:57:26 · 265 阅读 · 1 评论 -
React学习6.表单传值
import React, { Component } from 'react';// 数据绑定 事件class ReactForm extends Component { constructor(props) { super(props); this.state = { msg: 'reactForm', ...原创 2020-02-01 10:56:56 · 570 阅读 · 0 评论 -
React学习5.双向数据绑定
import React, { Component } from 'react';import '../assets/test.less'class TodoList extends Component { constructor(props) { super(props); this.state = { username: ...原创 2020-02-01 10:56:20 · 125 阅读 · 0 评论 -
React学习4.事件绑定ref传值、键盘监听
import React, { Component } from 'react';import '../assets/test.less'class News extends Component { constructor(props) { super(props); this.state = { username: '' ...原创 2020-02-01 10:55:42 · 1354 阅读 · 0 评论 -
React学习3.事件绑定传值
import React, { Component } from 'react';import '../assets/test.less'// 数据绑定 事件class Home extends Component { constructor(props) { super(props); this.state = { ms...原创 2020-02-01 10:55:12 · 261 阅读 · 0 评论 -
React学习2.获取、修改status的值
import React, { Component } from 'react';import '../assets/test.less'class Status extends Component { constructor(props) { super(props); this.state = { msg: '我是state里...原创 2020-02-01 10:54:38 · 889 阅读 · 1 评论 -
React学习1.获取、遍历status值
import React, { Component } from 'react';import '../assets/test.less'class News extends Component { constructor(props) { super(props); this.state = { msg: "state属...原创 2020-02-01 10:53:30 · 348 阅读 · 0 评论