上一页 1 2 3 4 5 6 7 8 9 ··· 27 下一页
摘要: let pattern = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4,5}[A-Z0-9挂学警港澳]{1}$/ 阅读全文
posted @ 2021-09-08 18:15 rachelch 阅读(202) 评论(0) 推荐(0) 编辑
摘要: import React from 'react'; import { Tabs } from 'antd'; import PropTypes from 'prop-types'; import Outline from './monitor-outline'; import Host from 阅读全文
posted @ 2021-09-02 17:48 rachelch 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 1.声明式表单验证: <Form.Item name="username" rules={[ { required: true, message: 'Please input your Username!', }, { max: 20, message: '最长20位!', }, { min: 5, 阅读全文
posted @ 2021-08-23 15:31 rachelch 阅读(2431) 评论(0) 推荐(0) 编辑
摘要: confirm({ title: '确定要删除吗?', okText: 'Ok', cancelText: 'Cancel', okButtonProps: {type: ''}, cancelButtonProps: {type: 'primary'}, onOk: () => this.prop 阅读全文
posted @ 2021-08-17 11:22 rachelch 阅读(1792) 评论(0) 推荐(0) 编辑
摘要: 1、通过 ref <Child ref="demo" /> 给子组件添加ref属性 在父组件使用 `this.refs.demo.state.xxx` 来获取子组件state里面的xxx的值 使用 `this.refs.demo.dosomthing()` 来调用子组件的dosomthing()方法 阅读全文
posted @ 2021-08-15 15:24 rachelch 阅读(2034) 评论(0) 推荐(0) 编辑
摘要: 1、Chart的父盒子需要加上overflow: 'hidden' 避免鼠标移入图标,tooltip显示,产生滚动条 <div style={{position: 'relative', overflow: 'hidden' }}> <div className={styles.emptyCover 阅读全文
posted @ 2021-08-13 14:36 rachelch 阅读(472) 评论(0) 推荐(0) 编辑
摘要: Uncaught Invariant Violation: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or 阅读全文
posted @ 2021-08-10 11:08 rachelch 阅读(890) 评论(0) 推荐(0) 编辑
摘要: getFullTime = (timeStamp) => { let time = ''; if(timeStamp> 1640000000){ const stamp2 = new Date(timeStamp*1000); time = Moment(stamp2).format('YYYY-M 阅读全文
posted @ 2021-08-10 10:41 rachelch 阅读(778) 评论(0) 推荐(0) 编辑
摘要: let indexServiceData = [ { "groupType" : "type", "typeValue" : "IMSI", "高速": 100, "国道": 199, "省道" : 111, "县道": 19 }, { "groupType" : "type", "typeValu 阅读全文
posted @ 2021-08-07 23:50 rachelch 阅读(434) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>echarts中国地图</title> <style> .centerItem { width: 856px; height: 640px; background-color: # 阅读全文
posted @ 2021-08-05 20:17 rachelch 阅读(2427) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 27 下一页