会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
国服第一李师师
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
20
下一页
2023年7月19日
画三角形一看就会,3秒画出三角形,究极口诀
摘要: 画三角形究极秘诀:先画夹角边,夹角边中的直角边为 40px solid red 斜边为 40px solid transparent 斜边是离直角边最近的top right bottom left中的一个最近的
阅读全文
posted @ 2023-07-19 17:41 国服第一李师师
阅读(600)
评论(0)
推荐(0)
2023年6月27日
滚动条滚动,将table的head 实现fixed 利于多条数据查看
摘要: export function rollTable() { const dom = document.querySelector('.app-main') const table = document.querySelector('.el-table') const maxAsyncHeight =
阅读全文
posted @ 2023-06-27 17:53 国服第一李师师
阅读(59)
评论(0)
推荐(0)
2023年3月23日
配置 git git多源提交代码
摘要: vi ~/.gitconfig [alias] st = status ci = commit ci-a = commit -a pr = pull --rebase co = checkout br = branch ll = log --pretty=format:"%C(yellow)%h%C
阅读全文
posted @ 2023-03-23 10:53 国服第一李师师
阅读(72)
评论(0)
推荐(0)
2023年3月22日
background-image
摘要: linear-gradient(270deg, rgba(255, 76, 77, 0.35) 0%, rgba(255, 153, 51, 0.35) 12.5%, rgba(255, 191, 0, 0.35) 25%, rgba(38, 217, 127, 0.35) 37.5%, rgba(
阅读全文
posted @ 2023-03-22 21:25 国服第一李师师
阅读(78)
评论(0)
推荐(0)
2023年2月10日
用docker打包一个前端项目
摘要: 思路:将dist包 打包成一个镜像(要不打出的镜像特别大) Dockerfile:如下 FROM nginx:latest COPY dist /auth-center WORKDIR auth-center COPY nginx.conf /etc/nginx/conf.d/default.con
阅读全文
posted @ 2023-02-10 15:42 国服第一李师师
阅读(272)
评论(0)
推荐(0)
2023年2月1日
github与jenkins相结合实现push代码后自动部署
摘要: 首先在settings里面设置 jenkins-token 记得设置勾选 至此github设置完成 jenkins credentials:选择私钥复制进去,github上放置公钥 将之前的github上面的jenkins-token复制进来 将服务器上面的ssh配置免密登录,然后把打包的文件放在n
阅读全文
posted @ 2023-02-01 20:15 国服第一李师师
阅读(210)
评论(0)
推荐(0)
2023年1月13日
react18.2.0
摘要: 在 18 之前,只有在react事件处理函数中,才会自动执行批处理,其它情况会多次更新 在 18,任何情况都会自动执行批处理,多次更新始终合并为一次hydrate 变为hydrateRoot render改为createRoot().render()flushSync 退出批量更新,但是内部仍然是批
阅读全文
posted @ 2023-01-13 16:48 国服第一李师师
阅读(172)
评论(0)
推荐(0)
2023年1月12日
husky最新配置
摘要: 基于8.0.3husky 17.4.1@commitlint/cli npm install --save-dev husky @commitlint/cli npx husky install npx husky add .husky/pre-commit 'yarn lint-staged' 校
阅读全文
posted @ 2023-01-12 15:29 国服第一李师师
阅读(140)
评论(0)
推荐(0)
2022年10月24日
web3
摘要: 1 eth = 1百亿亿 wei 1 后面18个0
阅读全文
posted @ 2022-10-24 16:23 国服第一李师师
阅读(27)
评论(0)
推荐(0)
2022年10月7日
forwardRef useImperativeHandle 使用最新理解
摘要: 有关forwardRef 转发ref搭配useImperativeHandle 使父组件可以使用子组件的ref 当然当forwardRef单独转发ref时,就是子组建也配置一个ref = {ref} 使父组件可以使用子组建的ref 个人理解forwardRef单独转发时,不用useImperativ
阅读全文
posted @ 2022-10-07 16:41 国服第一李师师
阅读(53)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
20
下一页
公告