摘要:
chatgpt 阅读全文
摘要:
废话不多说,上菜for in 和 for of 都是数据或者对象的便利for in:输出的是index(下标)for of:输出的是item(便利的值) 阅读全文
摘要:
git代码仓库管理工具 1.初始化本地仓库 a) Git init <directory> 2.克隆一个远程仓库 a) Git clone 仓库名 eg:git clone git@github.asdf.com:edadd/FE-AApppon.git 3.添加文件到暂存区 a) Git add 阅读全文
摘要:
废话不多说,上菜: 1 export default function useUuid(len, radix) { 2 const getUuid = () => { 3 const chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklm 阅读全文
摘要:
我们新拉取项目时,拉取代码后,下载依赖,执行npm install 时,卡在 idealTree 很久,这个时候我们就要考虑是不是 切换了淘宝镜像源,如果不清楚可以执行 nrm ls 查看,如果未按nrm,或者安装了,但是执行报错,这时可以直接切换淘宝镜像源(反复执行不影响,错不过不放过,哈哈),执 阅读全文
摘要:
if( (aa ?? ' ') !== ' ' ) { } ==> //相当于 if( aa !== null && aa !== undefined && aa !== '') { } 阅读全文
摘要:
aa = obj?.aa (链式操作符) 阅读全文
摘要:
我们处理数据时,会经常遇到精确搜索,这个时候使用find比filter更好,find遇到目标便利就会结束,filter会全部便利完,就性能而言,find更好 阅读全文
摘要:
let aa = [1, 2, 3] let bb = [3, 4, 5] // 合并去重 const cc = [...new Set([...aa, ...bb])] 阅读全文
摘要:
fe废话不多说,上菜 区别:obj.loong = (a,b)=>{ console.log(this.sex + a+'=='+b)} newObj = { sex: '女'} 1. obj.call(newObj, '美', '高') =>//女 美 高 >传入的参数a,b以单个传入 obj.a 阅读全文