摘要: 1.后端返回文件流下载excel操作? // 接口地址 export const ecoResProjectExportExcel = data => request({ url: '/ecoResProject/exportExcel', method: 'post', data, respons 阅读全文
posted @ 2022-01-28 17:13 皓皓102 阅读(26) 评论(0) 推荐(0) 编辑
摘要: React组件的数据渲染是否被调用者传递的props完全控制,控制则为受控组件,否则非受控组件。 import React, { Component, createRef } from 'react' export default class App extends Component { cons 阅读全文
posted @ 2022-01-28 16:53 皓皓102 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 一、属性(props) 组件间传值,在React中是通过只读属性 props 来完成数据传递的。props:接受任意的入参,并返回用于描述页面展示内容的 React 元素。 import React, { Component, Fragment } from 'react' import React 阅读全文
posted @ 2022-01-28 16:35 皓皓102 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 一、生命周期函数 挂载卸载过程 constructor props context componentWillMount 服务器与客户端 componentDidMount ajax请求 componentWillUnmount 清除动画 更新过程 componentwillRecieveUpdat 阅读全文
posted @ 2022-01-28 16:26 皓皓102 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 官网:https://react.docschina.org 一、认知React 概述 React 起源于 Facebook(脸书) 的内部项目,它是一个用于构建用户界面的 javascript 库,Facebook用它来架设公司的Instagram网站,并于2013年5月开源。 React用于构建 阅读全文
posted @ 2022-01-28 16:23 皓皓102 阅读(54) 评论(0) 推荐(0) 编辑