
前端
Hero_孙
JAVA是最好的语言!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
h5实现文字复制并提示复制成功
h5结合jquery实现 js <script> //h5复制文本到剪切板 function copyContentH5(content) { var copyDom = document.createElement('div'); copyDom.innerText=content; copyDom.style.position='absolute'; copyDom.style.top='0px'; copyDom.style.right='.原创 2021-05-06 14:38:20 · 1284 阅读 · 0 评论 -
使用react-selectable-fast实现时间拖动选择的功能
使用到的资源 react-selectable-fast antd react /** * @file modules/adlib/plan/EditFormantd * @author shj */ import { Form, Input, Switch, DatePicker, message, Button } from 'antd'; import {utils} from 'baidu-acu-react-common'; imp原创 2020-08-07 14:13:48 · 1484 阅读 · 2 评论 -
antd的使用(文件上传)
需求: 将本地文件通过上传接口上传 使用的工具: react, antd, <FormItem {...formItemLayout} label="营业执照1" > {getFieldDecorator('license1', { })(<Upload ...原创 2019-12-31 10:54:14 · 3009 阅读 · 0 评论 -
js知识点
1 数组长度 var arr =[1,2,3,4] arr.length =>4 arr[10] =1; arr.length => 11; 数组长度为最大下标+1 ,如果对应下标没有值,则为undefined; 2 遍历数组下标与数组元素 var arr =[1,2,3,4]; arr[10] =4; console.log(arr.length); conso...原创 2019-11-14 10:38:59 · 230 阅读 · 0 评论 -
css使用记录
1 设置鼠标悬停文字 <a title='标悬停文字'> 2 设置鼠标的图标 a { cursor:not-allowed; } 3 设置滚动条 overflow: auto; 在需要时内容会自动添加滚动条 overflow: scroll; 总是显示滚动条 overflow-x: hidden; 禁止横向的滚动条 overflow-y: scroll; ...原创 2019-11-07 11:17:02 · 136 阅读 · 0 评论 -
jquery基础知识
焦点获取失败 $("#username").focus();失败的原因: 由于使用了jquery,所以返回的是一个jquery对象,而不是DOM原创 2018-05-25 11:54:43 · 204 阅读 · 0 评论