07 2021 档案

摘要:1.setState更新状态的两种写法: (1). setState(stateChange, [callback]) 对象式的setState 1.stateChange为状态改变对象(该对象可以体现出状态的更改) 2.callback是可选的回调函数, 它在状态更新完毕、界面也更新后(rende 阅读全文
posted @ 2021-07-27 17:06 小不点灬 阅读(1678) 评论(0) 推荐(0) 编辑
摘要:理解:react-Redux将所有组件分成两大类 · UI组件 1)只负责UI的呈现,不带有任何的业务逻辑 2)通过props接收数据(一般数据和函数) 3)不使用任何Redux的API ·容器组件 1)负责管理数据和业务逻辑,不负责UI的呈现 2) 使用Redux的API 3)一般保存在conta 阅读全文
posted @ 2021-07-26 17:56 小不点灬 阅读(354) 评论(0) 推荐(0) 编辑
摘要:.ellipsis { display: inline-block; width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal !important } <el-t 阅读全文
posted @ 2021-07-26 16:58 小不点灬 阅读(743) 评论(0) 推荐(0) 编辑
摘要:1. <el-input v-show="scope.row.edit" @keyup.native="pree(scope.row)" v-model="scope.row.supperHighCost" @blur="edit(scope.row)" style="width: 60px" > 阅读全文
posted @ 2021-07-23 16:19 小不点灬 阅读(1478) 评论(0) 推荐(0) 编辑
摘要:this.formData.splice(0,this.formData.splice.length) 阅读全文
posted @ 2021-07-23 14:43 小不点灬 阅读(69) 评论(0) 推荐(0) 编辑
摘要:直接拖到谷歌浏览器中添加扩展程序 但是在使用 redux-devtools-extension 工具可以看到相应的store参数时需要代码设计 在store.js文件中 //首先安装npm i redux-devtools-extension // 引入reducx-devtools-extensi 阅读全文
posted @ 2021-07-21 17:15 小不点灬 阅读(504) 评论(0) 推荐(0) 编辑
摘要://首先安装npm i nanoid import {nanoid} from 'nanoid' {id:nanoid(),name,age} //nanoid 是js自带的函数用来产生唯一id值 阅读全文
posted @ 2021-07-21 16:57 小不点灬 阅读(928) 评论(0) 推荐(0) 编辑
摘要:首先区别redux和react-reduex,redux是一个单独的模块,在其他框架中也能使用,而react-redux是为react管理数据而生。 Redux 的设计思想很简单,就两句话。 (1)Web 应用是一个状态机,视图与状态是一一对应的。 (2)所有的状态,保存在一个对象里面。 redux 阅读全文
posted @ 2021-07-21 16:55 小不点灬 阅读(643) 评论(0) 推荐(0) 编辑
摘要:query() {//axios post请求参入Form Data格式的参数 data参数书写的变化 contentType请求头设置变化 let option = this.getParams(window.location.search.substr(1)); axios({ url:url, 阅读全文
posted @ 2021-07-20 17:11 小不点灬 阅读(745) 评论(0) 推荐(0) 编辑
摘要:bug:vue和element实现的后台分页,当前是第二页,点击搜索,强制设置current-page为1,但是当前页还是第二页没有改变只是数据变了。 绑定一个变量 页面 el-pagination v-if="pageshow" <el-pagination v-if="pageshow" bac 阅读全文
posted @ 2021-07-13 15:31 小不点灬 阅读(982) 评论(0) 推荐(0) 编辑
摘要:exportData(){ axios.post(basePath+'/apply/audit/exportCaptcha.do',this.form, { responseType:'blob' // 设置响应数据类型 }) .then(res=>{ if (res.status == 200) 阅读全文
posted @ 2021-07-09 17:06 小不点灬 阅读(67) 评论(0) 推荐(0) 编辑
摘要:传递参数的跳转页面 import React, { Component } from 'react' import {Route} from 'react-router-dom' import Detail from './Detail' export default class Message e 阅读全文
posted @ 2021-07-02 15:04 小不点灬 阅读(1392) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示