会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
吃鸡小能手
从小胃不好,医生建议吃软饭
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2021年3月16日
正则 间隔插入字符
摘要: .replace(/(.{5})/g, '$1\n') 每隔5个字符插入 \n
阅读全文
posted @ 2021-03-16 14:51 吃鸡小能手
阅读(213)
评论(0)
推荐(0)
2020年12月14日
react 函数组件中使用PullToRefresh报错问题
摘要: <PullToRefresh damping={50 as any} className='pullToRefresh' getScrollContainer={() => undefined} distanceToRefresh={40} style={{ height: hei, overflo
阅读全文
posted @ 2020-12-14 15:58 吃鸡小能手
阅读(429)
评论(0)
推荐(0)
2020年10月13日
图片压缩 base上传
摘要: import { IconButton, Avatar, Typography } from "@material-ui/core"; import _ServerURL from './../components/Ajax/_ServerURL'; import { ask } from "../
阅读全文
posted @ 2020-10-13 14:36 吃鸡小能手
阅读(111)
评论(0)
推荐(0)
input输入框
摘要: import TextField from '@material-ui/core/TextField'; /** * @param error 是否是错误 * @param fullWidth 是否全部宽度 * @param placeholder 说明文字 * @param remark 追加说明
阅读全文
posted @ 2020-10-13 14:19 吃鸡小能手
阅读(179)
评论(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 吃鸡小能手
阅读(150)
评论(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 吃鸡小能手
阅读(98)
评论(0)
推荐(0)
form 表单
摘要: 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 吃鸡小能手
阅读(133)
评论(0)
推荐(0)
2020年9月12日
span标签中实现换行
摘要: word-break:normal; width:auto; display:block; white-space:pre-wrap; word-wrap : break-word ; overflow: hidden ;
阅读全文
posted @ 2020-09-12 09:41 吃鸡小能手
阅读(4787)
评论(0)
推荐(1)
2020年9月11日
moment.js
摘要: 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 吃鸡小能手
阅读(204)
评论(0)
推荐(0)
操作json方法
摘要: JSON字符串转换为JSON对象 var json= eval('(' + str + ')'); var json = str.parseJSON() var json= JSON.parse(str)
阅读全文
posted @ 2020-09-11 09:02 吃鸡小能手
阅读(101)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告