自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 问答 (2)
  • 收藏
  • 关注

原创 antd改变Select样式时,选中有删不了的小框

抓元素都注意到了 .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector{ border:0 !important; border-radius: 0; } 是↑的锅,但是border什么的设置了没有用 其实是box-shadow的问题,设为none就好了 ...

2021-09-27 17:11:39 407

原创 webWorker使用积累

postMessage传输受数据大小影响,数据量过大时worker.onmessage接收不到数据内容,且不报错。 框架中使用webWorker由于webWorker不能直接读取ts,而js 文件受限不能import或require模块,一般使用worker-loader.d.ts文件,将.ts的webworker文件导出。但由于框架受限不能直接获取(本人学艺不精)也可以直接再.js的webworker文件中以importScript()方法导入 ...

2021-06-30 09:38:17 371

原创 hooks引用useRef,报错object is possibly undefined

hooks中引用ref报错,ref.current Object is possibly ‘undefined’, 在const ref = useRef(null)解决 (我也是看到别人的就是记录一下怕自己忘了)

2021-05-10 09:40:48 1267

原创 React 使用Redirect跳转时,url改变了但是页面不显示

此处判断了userInfo以后,页面url跳转了,但不显示页面内容 我这里写成箭头函数就可以正常跳转了

2021-04-19 18:50:42 1235

原创 Echarts中频繁报错data.count is not a function

Echarts中频繁报错data.count is not a function 将arr直接填入dataset,报错data.count is not a function 将arr传给source,将source填入dataset,不再报错 原因不明T.T

2021-04-13 11:32:50 4855 3

原创 HTML5新特性

input—type新属性值: html4:text,password,button,checkbox,radio,submit,file,reset html5:email,url,number,search,range,color,date,month,week p.s.新的type属性值可进行简单验证,但是不同浏览器效果不一,且验证内容较松,所以正规使用还是需要前端进行正则验证。 新表单元...

2018-12-04 17:00:39 103

原创 SQL多表查询出错(Column 'did' in field list is ambiguous)

select dishId,count,( select title from wds_dishes where did=did limit 1 ) as title from wds_shopping_cart inner join wds_dishes on did=did where uid=1 现有两张表: 购物车表wds_shopping_cart 菜品信息表wds_dishes 现想...

2018-11-07 15:42:40 1282

原创 用setInterval实现轮播效果鼠标移入移出时轮播跳错

var timer=setInterval(task,3000) div.onmouseover=function(){ clearInterval(timer) } div.onmouseout=function(){ setInterval(task,3000) } 轮播图本身不会跳错,在添加鼠标移入移出的暂停/开始效果时,可以实现第一次移入暂停,但是在移出后轮播图不按设定乱跳。随着移入...

2018-11-06 20:04:21 1040 1

原创 HTML+CSS布局时,明明宽度足够为何会换行

<div class="card-con"> <div class="card-shop-item"></div> <div class="card-shop-item"></div> <div class="card-shop-item"><

2018-11-06 19:56:12 2060

原创 Vue重构项目时对document.body.scrollTop的设置不起作用

用Vue重构项目时对document.body.scrollTop的设置不起作用 goto(index) { this.index=index let goto = document.getElementsByClassName('scroll-item'); // 获取滚动条需要移动的高度 let total =goto[index...

2018-11-06 19:33:53 4729 2

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除