type
status
date
slug
summary
tags
category
titleIcon
password
icon
calloutIcon

ajax/xhr/fetch/axios

web1.0纯浏览
web2.0用户提交表单内容
notion image
notion image
notion image
notion image
notion image
notion image

节流防抖

notion image
notion image
notion image
notion image
notion image
notion image
notion image

px % em rem vw vh

notion image
notion image
子绝父相 left top 50% transform: translate(-50%, -50%)居中
 
notion image
notion image
notion image
notion image
notion image
notion image

箭头函数

notion image
notion image
window {} undefined
对象只有普通函数可以获取自身属性
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
Vue是个对象 对象方法不能用箭头函数 React class可以
notion image
notion image
class里可以用
notion image

三次握手四次挥手

notion image
notion image
notion image
notion image
notion image

for in/for of

notion image
notion image
字符串 数组 arguments dom for of √
对象的key可以直接拼接成一个数组 属于可迭代 for of需要直接遍历过一次才能得到,不属于直接可迭代 所以对象只能 for in
MapSetGenerator只能获取值,所以只能for of 对于Map Set等key只是伪下标,尤其是map value包括了key与value 遍历得到Array(2) 所以没有 for in
notion image
notion image
两个函数调用
Object.getOwnPropertyDescriptors()空对象 不可枚举 非空可枚举 里面属性带有enumerable: true
[Symbol.iterator]() 可以即可迭代 原型上带next方法
notion image
notion image

for await of

notion image
文件上传⇒一次传完 创完全部Promise 逐个await
⇒ 逐个上传 创一次Promise await一次
notion image
notion image

OffsetHeight scrollHeight clientHeight

notion image
notion image
box-sizing: border-box ⇒ width/height = width/height - padding * 2 - border * 2
计算里包含两边
notion image
 

HTMLCollection与NodeList区别

 
notion image
notion image
notion image
notion image
notion image
notion image
换行加缩进文本
notion image
tagName ⇒ Element
nodeName nodeType ⇒ Node
notion image
notion image

Vue computed vs watch

notion image
notion image
notion image
notion image
不准确的比喻
工厂模式 用于产出新的东西
发布订阅 监听变化

Vue组件通讯

notion image
notion image
父对子 - 属性
子对父 - 事件
notion image
notion image
notion image
 
 
 
 
自定义事件
notion image
notion image
notion image
 
notion image
notion image
notion image
notion image
notion image
$attrs放不在props与emits中的
vue3 合并
notion image
notion image
notion image
 
notion image
notion image
独立节点会有
notion image
notion image
notion image
notion image
可用v-bind作多级传递
notion image
 
vue2里的$children用$ref获取
notion image
notion image
notion image
$parent $refs需要在mounted里获取
notion image
notion image
多层级获取数据
notion image
notion image
notion image
notion image
notion image
notion image

Vuex mutation vs action

notion image

JS严格模式

notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image

HTTP 跨域请求为何发送 options

notion image
notion image
notion image
notion image
notion image
 
 
 
notion image

GC

notion image
notion image
 
引用计数
notion image
notion image
notion image
 
notion image

检测内存泄漏

notion image
notion image
Performance工具
重复创建销毁 内存应为锯齿状 一直上升泄漏
notion image

Vue内存泄漏

notion image
notion image
 
notion image
notion image
notion image
notion image
notion image

内存泄漏场景扩展 WeakMap WeakSet

notion image
只有get判断有没有 没有forEach size等
notion image
建立独立销毁的联系
notion image

浏览器和nodejs的事件循环区别

notion image
notion image
notion image
notion image
notion image
notion image
notion image
DOM结构不会干涉 一直都是2
notion image
notion image
 
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image

VDOM

notion image
notion image
notion image
notion image
notion image
notion image
notion image

遍历数组for forEach哪个快

notion image
notion image
notion image
notion image
notion image

nodejs开启进程与进程之间通信

notion image
notion image
notion image
notion image
 
notion image
notion image
notion image
notion image
notion image
PM2 完成进程守护 多进程服务
notion image
notion image

JS Bridge

notion image
 
 
notion image
notion image
notion image
notion image
notion image
检查到自己协议,app直接处理返回
notion image
notion image
实现异步,全局对象只能同步
notion image
notion image
 
notion image
notion image
自定义协议 app拦截处理
 
notion image

requestIdleCallback requestAnimationFrame

React16 fiber ⇒ requestIdleCallback
notion image
组件数变链表 树遍历一般递归不方便中断 以此分段渲染
notion image
notion image
notion image
notion image
 
notion image
notion image

Vue生命周期

notion image
notion image
可以做与页面无关的
notion image
notion image
notion image
 
 
 
 
 
 
 
 
 
 
notion image

H5的首屏优化

notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image

后端10w数据

notion image
notion image
notion image
代码调试测试上线监控 申请服务器域名
notion image
notion image
notion image
notion image

前端设计模式与场景

notion image
notion image
notion image
notion image
notion image
 
notion image
 
notion image
notion image
 
notion image
notion image
 
notion image
notion image
notion image
 

观察者与发布订阅区别

notion image
 
notion image
 
notion image
notion image
notion image

Vue优化

notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
notion image
 
notion image
 
notion image
notion image

使用问题 遇到的坑

notion image
notion image
notion image
 
 

移动端H5 click 300ms延迟

notion image
单击后进行一定延迟再执行点击事件
notion image
notion image
notion image
notion image
认为已经做了响应式 不需要再用双击放大 无延迟
notion image

token与cookie区别

notion image
notion image
notion image
notion image
notion image
第三方广告设置自己网站的cookie
notion image
notion image
notion image
 
notion image
notion image
notion image
notion image
将服务端状态数据移动到客户端 使服务端无状态 方便扩容
notion image
减小体积 4kb大小限制 session中集中存储数据 cookie放个id
 
notion image

Session vs JWT

notion image
notion image
notion image
 
notion image
notion image
notion image

SSO单点登录

notion image
notion image
notion image
notion image
localstorage也是跨域不共享
notion image
notion image
notion image
notion image

TCP UDP

 
notion image
notion image
notion image
notion image

HTTP 1.0 1.1 2.0

notion image
notion image
notion image
不需要多个js css文件拼成一个返回 通过减少请求次数增加性能
notion image

HTTPS中间人攻击 如何预防

notion image
同时使用
notion image
notion image
 
前端模块化GopherCon 2018 - Golang调度器/GMP笔记
Loading...
CamelliaV
CamelliaV
Java;CV;ACGN
最新发布
单例模式的四种写法
2025-4-24
体验MCP
2025-4-24
MetingJS使用自定义音乐源-CF+Huggingface部署
2025-4-2
博客访问站点测速分析与对比
2025-3-26
前端模块化
2025-3-16
Voxel2Mesh相关论文精读与代码复现
2025-3-15
公告
计划:
  • LLM相关
  • 支付业务 & 双token无感刷新
  • (线程池计算优惠方案)天机学堂Day09-Day12复盘-优惠劵业务
  • (业务复盘,技术汇总)天机学堂完结复盘
  • hot 100
 
2024-2025CamelliaV.

CamelliaV | Java;CV;ACGN