上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 63 下一页
摘要: 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 吴小明- 阅读(1148) 评论(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 吴小明- 阅读(129) 评论(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 吴小明- 阅读(125) 评论(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 吴小明- 阅读(165) 评论(0) 推荐(0) 编辑
摘要: HTTP: 超文本传输协议,是一个基于请求与响应,无状态的,应用层的协议,常基于TCP/IP协议传输数据,互联网上应用最为广泛的一种网路协议,所有的www文件都必须遵循这个标准。设计HTTP的初衷就是为了提供一种发布和接收HTML页面的方法。 HTTP发展历史: 版本 时间 内容 发展现状 HTTP 阅读全文
posted @ 2020-12-25 17:34 吴小明- 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 问题: 1、a.xxx.com和b.xxx.com这两个域能共享同一个localStorage吗 2、在a.xxx.com/list.html页面中点击进入a.xxx.com/details.html中,这两个不同的页面能共享一个localStorage吗 3、如果localStorage存满了,再 阅读全文
posted @ 2020-12-24 15:32 吴小明- 阅读(1254) 评论(0) 推荐(1) 编辑
摘要: 301:永久重定向,表示请求的资源分配了新的url,以后应使用新url 302:临时重定向,请求的资源临时分配了新的url(response中location所指的地址),本次请求暂时使用新url 服务器返回302时,也会返回location,浏览器再次请求location中指定的地址,也就是浏览器 阅读全文
posted @ 2020-12-23 18:05 吴小明- 阅读(2232) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 63 下一页