• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






YCA

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页

2021年2月1日

React---websocket断开重连
摘要: 前端: sockjs-client v1.0.0 stomp.js v2.3.3 import React, { Component } from 'react'; import { withRouter } from 'react-router-dom'; import { Modal, Butt 阅读全文
posted @ 2021-02-01 15:46 Super_gaga 阅读(936) 评论(0) 推荐(0)
 

2021年1月11日

js -- 搜索功能,对于搜索关键字高亮处理
摘要: js: export const highlightKeyword = (str, key) => { if (!str) return ''; let reg = new RegExp('(' + key + ')', 'gi'); let newstr = str.replace(reg, '< 阅读全文
posted @ 2021-01-11 14:57 Super_gaga 阅读(452) 评论(0) 推荐(0)
 

2021年1月7日

js--常用方法
摘要: import moment from 'moment'; import Reg from '../constants/validate'; import * as Pictures from '../pictures'; import qs from 'qs'; const dateFrom = ' 阅读全文
posted @ 2021-01-07 15:33 Super_gaga 阅读(135) 评论(0) 推荐(0)
 
常用的正则校验
摘要: //validate.jsconst Reg = { identifyNumber: /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,//身份证校验 digita 阅读全文
posted @ 2021-01-07 15:20 Super_gaga 阅读(116) 评论(0) 推荐(0)
 

2020年12月9日

css3-更改默认滚动条样式
摘要: 在项目开发中,遇到滚动条横向和纵向重合处,会有一个白边。 解决方案: ::-webkit-scrollbar { width: 0px !important; } 阅读全文
posted @ 2020-12-09 14:42 Super_gaga 阅读(119) 评论(0) 推荐(0)
 

2020年11月16日

js--数组分类
摘要: 原数组: let arr = [ { id:1, key: "计划中", value: "E0001" }, { id:2, key: "已完成", value: "E0006" }, { id:3, key: "计划中", value: "E0007" }, { id:4, key: "已取消", 阅读全文
posted @ 2020-11-16 18:20 Super_gaga 阅读(674) 评论(0) 推荐(0)
 

2020年9月10日

html5--video 无法自动播放
摘要: 在video标签中,使用autoplay='autoplay'无法自动播放。 解决方法: 在video标签中,添加muted属性: <video muted src='xx.mp4' autoplay muted></video> 解释: muted属性设置或返回视频是否应该被静音 true:关闭声 阅读全文
posted @ 2020-09-10 15:32 Super_gaga 阅读(1120) 评论(0) 推荐(0)
 

2020年9月8日

antd hooks --Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
摘要: 问题描述: 在Antd Form 组件中,当子组件使用Hooks自定义 Function component时,提示以下警告错误。 warning:Function components cannot be given refs. Attempts to access this ref will f 阅读全文
posted @ 2020-09-08 14:10 Super_gaga 阅读(9251) 评论(1) 推荐(1)
 

2020年8月20日

react --websocket 重连
摘要: html: <script type="text/javascript" src="https://cdn.bootcss.com/sockjs-client/1.0.0/sockjs.min.js" ></script> <script type="text/javascript" src="ht 阅读全文
posted @ 2020-08-20 15:11 Super_gaga 阅读(509) 评论(0) 推荐(0)
 

2020年8月13日

Ant design DatePicker ----移动端,点击DatePicker 时,会出现软键盘,隐藏方案
摘要: 在移动端,点击DatePicker 控件时,会出现软键盘,可以通过以下方式隐藏软键盘。 function DatePickerDemo(props) { let dateRef = React.createRef(); return ( <div className="birth-date" ref 阅读全文
posted @ 2020-08-13 11:21 Super_gaga 阅读(1228) 评论(0) 推荐(1)
 
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页