上一页 1 2 3 4 5 6 7 ··· 25 下一页
摘要: //表格列添加判断 { title: '选择组织', dataIndex: 'myId', inputtype: 'select', width: 150, align: 'center', editable: true, }, ...(this.props.role == 3 ? [{ title 阅读全文
posted @ 2020-12-31 15:45 dongxiaolei 阅读(103) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/d189d9e59b5c IQJBET5GKT-eyJsaWNlbnNlSWQiOiJJUUpCRVQ1R0tUIiwibGljZW5zZWVOYW1lIjoi5rC45LmF5r+A5rS7IGlkZWHCt21lZGVtaW5nwrdjb20i 阅读全文
posted @ 2020-12-29 12:14 dongxiaolei 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 1、export interface和 class区别 export interface 只是对一个东西的声明(不能具体的操作) export class 导出一个类 类里面可有有参数 可以有一写函数 方法(干一些具体的事情) 路由:https://blog.csdn.net/hbiao68/art 阅读全文
posted @ 2020-12-19 20:26 dongxiaolei 阅读(202) 评论(0) 推荐(0) 编辑
摘要: //获取某元素后相邻的所有class名为MsoToc2的兄弟元素nextAll(node){ let that = this, nextNode = that.next(node), nodeArray = []; while(nextNode != null && that.hasClass(ne 阅读全文
posted @ 2020-12-13 18:11 dongxiaolei 阅读(3814) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/ac6300b7aa07 react 子组件改变父组件的state值:通过将父组件中的方法传给子组件,(在方法中改变state值) 父组件: handleE = () => { let newType = this.state.type; newT 阅读全文
posted @ 2020-12-03 15:01 dongxiaolei 阅读(3469) 评论(0) 推荐(0) 编辑
摘要: 参考:https://baijiahao.baidu.com/s?id=1675162387294606182&wfr=spider&for=pc map、find、findIndex:https://www.cnblogs.com/studyshufei/p/7910384.html 阅读全文
posted @ 2020-11-26 15:48 dongxiaolei 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1,在jsx页面派发任务,可以在componentWillMount的生命周期内,使用this.props.dispatch方法派发,需要先引用connect模块,不引用会报错 import { connect } from 'dva'; 在类中操作: class 类名 extends React. 阅读全文
posted @ 2020-11-17 22:42 dongxiaolei 阅读(2430) 评论(0) 推荐(0) 编辑
摘要: 1)getFieldDecorator是一个方法,这个方法接收两个参数,第一个是表单的字段对象,第二个是验证规则。这个方法本身返回一个方法,需要将需要获取值的标签包裹进去。 const formItemLayout = { labelCol: { span: 12, }, wrapperCol: { 阅读全文
posted @ 2020-11-16 21:55 dongxiaolei 阅读(4000) 评论(0) 推荐(1) 编辑
摘要: dva part 官网说法:dva 首先是一个基于 redux 和 redux-saga 的数据流方案,然后为了简化开发体验,dva 还额外内置了 react-router 和 fetch,所以也可以理解为一个轻量级的应用框架。dva由以下部分组成: 1)定义model import { conce 阅读全文
posted @ 2020-11-15 09:12 dongxiaolei 阅读(579) 评论(0) 推荐(0) 编辑
摘要: showCatalog = () => {//食堂百科-docx页面添加目录 let docxStr = document.getElementById("docx").innerHTML, reg = /<a href="(.+?)">(.+?)<\/a>/gi, regCont = /<a[^> 阅读全文
posted @ 2020-11-11 08:32 dongxiaolei 阅读(2241) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 25 下一页