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