会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
韭菜茄子
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
15
下一页
2022年7月1日
写一个项目里词条对比的shell
摘要: 需求:找出当前开发分支里未上传到词条平台的词条 #! /bin/bash # # # 手动版说明: # 1、将此shell放在项目根目录里跟.git目录平级; # 2、如果查找的分支显示没有修改,有可能是已经合到master了,所以没有差异; # 3、如果想自己查找某个目录里的所有词条,直接在相应目
阅读全文
posted @ 2022-07-01 21:17 韭菜茄子
阅读(13)
评论(0)
推荐(0)
2022年6月23日
发现一个不错的笔记本软件 Notion
摘要: 官网地址:https://www.notion.so/help/guides
阅读全文
posted @ 2022-06-23 16:52 韭菜茄子
阅读(13)
评论(0)
推荐(0)
2022年5月26日
转载:统计项目文件个数或者代码行数的shell
摘要: ls -lR|grep "^d"|wc -l //统计文件夹下目录的个数,包括子文件夹里的 ls -lR|grep "^-"|wc -l //统计当前文件夹下文件的个数,包括子文件夹里的 ls -l |grep "^d"|wc -l //统计当前文件夹下目录的个数 ls -l |grep "^-"|
阅读全文
posted @ 2022-05-26 17:22 韭菜茄子
阅读(69)
评论(0)
推荐(0)
2022年5月9日
转载:requestAnimationFrame
摘要: https://juejin.cn/post/6991297852462858277
阅读全文
posted @ 2022-05-09 17:57 韭菜茄子
阅读(17)
评论(0)
推荐(0)
2021年4月9日
缓存函数 memorize
摘要: // 缓存函数 Function.prototype.memoize = function () { var _this = this; return function () { const args = Array.prototype.slice.call(arguments); _this.ca
阅读全文
posted @ 2021-04-09 17:05 韭菜茄子
阅读(169)
评论(0)
推荐(0)
2021年4月7日
React Context的api用法备忘
摘要: import React, { Component, useContext, useState } from 'react'; // 解构写法 const { Provider, Consumer } = React.createContext(); // defaultValue的问题 // ht
阅读全文
posted @ 2021-04-07 17:10 韭菜茄子
阅读(79)
评论(0)
推荐(0)
2021年4月2日
React函数组件和Class组件使用forwardRef传递ref
摘要: // 函数组件使用forwardRef传递ref const ForwardRefComponent = React.forwardRef((props, ref) => <div ref={ref.bind(this)} {...props}>子组件DOM</div>) export defaul
阅读全文
posted @ 2021-04-02 17:35 韭菜茄子
阅读(1611)
评论(0)
推荐(0)
2021年4月1日
转载:React 通过ref获取DOM对象或者子组件实例的用法
摘要: React 通过ref获取DOM对象或者子组件实例的用法 https://www.cnblogs.com/greatdesert/p/12697726.html React 通过forwardRef获取函数组件内某个DOM节点或者子组件的实例 https://www.cnblogs.com/grea
阅读全文
posted @ 2021-04-01 16:58 韭菜茄子
阅读(185)
评论(0)
推荐(0)
2021年2月3日
awk输出单引号、双引号
摘要: # 输出双引号 awk -F "" '{print "\""$1"\"\,"}' "xxxxx", 使用""双引号把一个双引号括起来,然后用转义字符\对双引号进行转义,输出双引号。 # 输出单引号 awk -F "" '{print "'\''"$1"'\'\,'"}' 'xxxxx', # 使用一
阅读全文
posted @ 2021-02-03 17:44 韭菜茄子
阅读(1170)
评论(0)
推荐(0)
2020年11月6日
Css进度条
摘要: linear-gradient(angle/direction, color stop, color stop, ...); 一个线性渐变可以由多种颜色组成。除了指定颜色的方向和角度之外,linear-gradient()接收一组color stop作为参数。color stop由一个颜色和一个可选
阅读全文
posted @ 2020-11-06 15:45 韭菜茄子
阅读(124)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
15
下一页
公告