Fork me on GitHub

2021年8月25日

baseUI 中 styletron方法 伪类伪元素设置

摘要: import { styled } from "styletron-react"; export default () => { const Button = styled("button", { color: "white", backgroundColor: "white", "::before 阅读全文

posted @ 2021-08-25 13:09 康心志 阅读(70) 评论(0) 推荐(0) 编辑

2021年8月17日

React useHistory 库中 goBack() 和 go(-1) 失效,

摘要: 今天在项目中遇到一个怪异的问题, 使用useHistory库时,push正常使用,但是goBack() 和 go(-1) 失效 解决方案: 阅读全文

posted @ 2021-08-17 13:32 康心志 阅读(958) 评论(1) 推荐(0) 编辑

2021年8月12日

React中关于使用map遍历绑定key值问题

摘要: 9.23 发现了可以用React.Fragment绑定key值 <React.Fragment key={}> </React.Fragment> 代替<> </>无法绑定key的情况 项目中使用baseUI时,根据文档构建视图, 但是数据用数组遍历时无非给<></> 绑定key值。出现index. 阅读全文

posted @ 2021-08-12 18:24 康心志 阅读(625) 评论(0) 推荐(0) 编辑

2021年8月11日

学习清单

摘要: react状态管理 http://cn.redux.js.org/ https://redux-toolkit-cn.netlify.app/ https://www.recoiljs.cn/ https://github.com/pmndrs/jotai https://github.com/st 阅读全文

posted @ 2021-08-11 11:40 康心志 阅读(83) 评论(0) 推荐(0) 编辑

2021年8月10日

grid布局学习

摘要: 当前网站是用flex布局完成的,左右布局,当屏幕宽度小于一定值时需要上下排版。 效果图: 在网上学习了gird布局 搭出了以下两个布局demo <LayoutContainer width="w1600" className={cn(styles.mainContentItem, styles.to 阅读全文

posted @ 2021-08-10 13:36 康心志 阅读(37) 评论(0) 推荐(0) 编辑

2021年8月9日

修改Input输入框中Autocomplete样式

摘要: input: input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus input:-webkit-autofill, textarea:-webkit-autofill, textarea: 阅读全文

posted @ 2021-08-09 16:25 康心志 阅读(533) 评论(0) 推荐(0) 编辑

2021年7月26日

手机点击网页div或者按钮出现蓝框的解决方案

摘要: 给该盒子设置一下属性 -webkit-tap-highlight-color: rgba(255,0,0,0); -webkit-appearance:none; 阅读全文

posted @ 2021-07-26 17:53 康心志 阅读(261) 评论(0) 推荐(0) 编辑

2021年7月20日

误删本地分支,两天的工作量差点毁于一旦,使用git reflog 有惊无险恢复

摘要: 手贱了一下,在gitea的版本里面切换分支,一不小心把正在开发的本地分支给删除了。这是我 两天的工作量啊。最终使用git reflog 有惊无险恢复。记录一下! 阅读全文

posted @ 2021-07-20 15:33 康心志 阅读(150) 评论(0) 推荐(0) 编辑

2021年7月8日

React使用useLocation监听url地址变化,工具URLSearchParams获取参数

摘要: import * as React from 'react' import { Link, useLocation } from 'react-router-dom' export interface BottomNavigationViewProps { className?: string is 阅读全文

posted @ 2021-07-08 18:32 康心志 阅读(5617) 评论(0) 推荐(0) 编辑

2021年6月30日

七层网络数据模型

摘要: 一、物理层 作用:传输比特流 设备:集线器(HUB)、中继器(repeater) 网线制作:直通线,交叉线,T568B(线序:橙绿蓝棕),T568A 二、数据链路层:1,作用:把bit组全组成帧帧的格式:dmac|smac|type|data|fcsmac地址48bit6字节设备:二层交换机(有物理 阅读全文

posted @ 2021-06-30 19:53 康心志 阅读(361) 评论(0) 推荐(0) 编辑

导航