2022年9月14日

改antd表格样式

摘要: //行之内的间距 .cyclicScrolls1 .ant-table{ line-height: 0.5715; } //整体表格大小缩小 .cyclicScrolls1 .ant-table-body{ max-height: 150px!important; /* border: 1px so 阅读全文

posted @ 2022-09-14 10:34 左侧岚 阅读(84) 评论(0) 推荐(0) 编辑

2022年9月5日

js 数组对象 去重

摘要: let datas = []; let obj = {}; // 去重 重复的ip datas = data.items.reduce(function (item, next) { obj[next.service] ? '' : (obj[next.service] = true && item 阅读全文

posted @ 2022-09-05 17:08 左侧岚 阅读(37) 评论(0) 推荐(0) 编辑

2022年8月31日

js filter 用filter 必须用return 要不然不起效果

摘要: js filter 用filter 必须用return 要不然不起效果 阅读全文

posted @ 2022-08-31 15:08 左侧岚 阅读(144) 评论(0) 推荐(0) 编辑

2022年7月25日

antd table 表格 循环滚动 css有问题 把 styles都删除掉 已测试

摘要: import React, { useEffect, useState } from 'react' import styles from './style.css' import { Table } from 'antd'; const dataSource = [ { grade: '策略tex 阅读全文

posted @ 2022-07-25 15:28 左侧岚 阅读(199) 评论(0) 推荐(0) 编辑

2022年7月20日

css 父元素的高度默认是被子元素撑开 这样会造成高度塌陷

摘要: css 父元素的高度默认是被子元素撑开 这样会造成高度塌陷 阅读全文

posted @ 2022-07-20 10:58 左侧岚 阅读(222) 评论(0) 推荐(0) 编辑

2022年7月19日

防抖 节流

摘要: 这个情况 就是 咱们经常获取验证码的时候 死机了 一直点验证码 无响应 节流是验证码 节流跟红绿灯一样 一定时间内 通过一些 验证码是60秒 跟红绿灯一样 开始了就重新计时 必须等到一定时间结束 才可以重新计时 防抖是可以重新计时的 跟电梯一样 你进1个人 电梯关门 就得重新计时 这2个区别 就是重 阅读全文

posted @ 2022-07-19 15:41 左侧岚 阅读(22) 评论(0) 推荐(0) 编辑

2022年7月12日

vue页面将http转为https

摘要: 因为https地址中,如果加载了http资源,浏览器将认为这是不安全的资源,将会默认阻止。后来在文档中添加了<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">完美解决了将http转为https 阅读全文

posted @ 2022-07-12 16:15 左侧岚 阅读(2491) 评论(0) 推荐(0) 编辑

2022年7月11日

正则 以字母或下划线开头,包含字母、数字、以及下划线

摘要: <el-input placeholder="请输入" v-model="parameterkey" @blur="regtest" clearable ></el-input> regtest(){ if(this.parameterkey!==''){ var reg = /^[a-zA-Z_] 阅读全文

posted @ 2022-07-11 17:36 左侧岚 阅读(1657) 评论(0) 推荐(0) 编辑

2022年7月7日

div 画圆

摘要: .cicle{ width: 50px!important; height: 50px!important; background-color:rgba(0,200,200,0.3)!important; border-radius: 50%!important; -moz-border-radiu 阅读全文

posted @ 2022-07-07 10:44 左侧岚 阅读(112) 评论(0) 推荐(0) 编辑

antd border 边框 细节条

摘要: border-bottom: 1px solid #f0f0f0!important; 阅读全文

posted @ 2022-07-07 10:01 左侧岚 阅读(295) 评论(0) 推荐(0) 编辑

导航