摘要: .replace(/(.{5})/g, '$1\n') 每隔5个字符插入 \n 阅读全文
posted @ 2021-03-16 14:51 吃鸡小能手 阅读(192) 评论(0) 推荐(0) 编辑
摘要: <PullToRefresh damping={50 as any} className='pullToRefresh' getScrollContainer={() => undefined} distanceToRefresh={40} style={{ height: hei, overflo 阅读全文
posted @ 2020-12-14 15:58 吃鸡小能手 阅读(404) 评论(0) 推荐(0) 编辑
摘要: import { IconButton, Avatar, Typography } from "@material-ui/core"; import _ServerURL from './../components/Ajax/_ServerURL'; import { ask } from "../ 阅读全文
posted @ 2020-10-13 14:36 吃鸡小能手 阅读(104) 评论(0) 推荐(0) 编辑
摘要: import TextField from '@material-ui/core/TextField'; /** * @param error 是否是错误 * @param fullWidth 是否全部宽度 * @param placeholder 说明文字 * @param remark 追加说明 阅读全文
posted @ 2020-10-13 14:19 吃鸡小能手 阅读(168) 评论(0) 推荐(0) 编辑
摘要: import FormControlLabel from '@material-ui/core/FormControlLabel'; import Switch from '@material-ui/core/Switch'; /** * @param error 是否是错误 * @param fu 阅读全文
posted @ 2020-10-13 14:18 吃鸡小能手 阅读(142) 评论(0) 推荐(0) 编辑
摘要: import TextField from '@material-ui/core/TextField'; import MenuItem from '@material-ui/core/MenuItem'; const currencies = [ { value: 'USD', label: '$ 阅读全文
posted @ 2020-10-13 14:16 吃鸡小能手 阅读(93) 评论(0) 推荐(0) 编辑
摘要: import JInput from "./JInput"; import JUpload from "./JUpload"; import { Button, Grid } from "@material-ui/core"; import JToggle from './JToggle'; imp 阅读全文
posted @ 2020-10-13 14:14 吃鸡小能手 阅读(122) 评论(0) 推荐(0) 编辑
摘要: word-break:normal; width:auto; display:block; white-space:pre-wrap; word-wrap : break-word ; overflow: hidden ; 阅读全文
posted @ 2020-09-12 09:41 吃鸡小能手 阅读(4753) 评论(0) 推荐(1) 编辑
摘要: import moment from 'moment'; import 'moment/locale/zh-cn'; moment.locale('zh-cn'); const PATTERN_DATE = 'YYYY-MM-DD'; const PATTERN_TIME = 'HH:mm:ss'; 阅读全文
posted @ 2020-09-11 15:49 吃鸡小能手 阅读(165) 评论(0) 推荐(0) 编辑
摘要: JSON字符串转换为JSON对象 var json= eval('(' + str + ')'); var json = str.parseJSON() var json= JSON.parse(str) 阅读全文
posted @ 2020-09-11 09:02 吃鸡小能手 阅读(95) 评论(0) 推荐(0) 编辑