-
编程中的设计模式
设计模式分类 设计模式主要分为四类:创建型模式、结构型模式、行为型模式,还有一种J2EE 模式 创建型模式: 这些设计模式提供了一种在创建对象的同时隐藏创建逻辑的方式,而不是使用 new 运算符直接实例化对象。这使得程序在判断针对某个给定实例需要创... -
antd-d,一个基于antd的配置化组件库
介绍 antd-d是一个基于antd v5.16.0的配置化的组件库 适用于 react web 开发 支持TypeScript 支持ESM和UMD规范 安装antd-d之后,会自动安装antd,可直接引入antd中的组件 目前封装了绝大多数For... -
前端面试题(高阶-架构篇)
浏览器缓存与Web安全一、描述浏览器缓存的工作原理二、HTTP头中的哪些字段与缓存策略有关?它们各自如何工作?三、解释Cache-Control、Expires、Last-Modified、ETag等HTTP头字段如何影响浏览器缓存行为?四、什么是强... -
前端面试题(进阶篇)
React18相关面试题一、React的设计思路,它的理念是什么?和Vue有什么异同二、什么是React的事件机制?和普通的事件有什么区别?请解释其工作原理三、React.Component和React.PureComponent之间的区别是什么?四... -
前端面试题(基础篇)
性能优化面试题一、在前端开发中,有哪些性能优化方面的操作? 减少http请求: 合并CSS、JavaScript文件,使用CSS Sprites合并图像,减少页面加载时的请求数量。 使用CDN: 将静态资源,如图片、CSS、JavaScript文件... -
经济学原理笔记
经济学的十大原理 原理一: 人们面临权衡取舍 大炮与黄油效率与平等效率指社会能从稀缺资源中得到的最大利益平等指将这些利益平均的分配给每个成员换句话说,效率是指经济蛋糕的大小,平等是指如何分割这块蛋糕。 原理二:某种东西的成本是为了得到它,所放弃... -
tmux终端复用
tmux介绍 tmux 是一个终端复用器,它允许你在一个终端窗口中运行多个终端会话,并在这些会话之间切换,而不必打开多个终端窗口。它对于需要同时管理多个任务的用户非常有用,尤其是在服务器管理、开发等方面。 安装 在 CentOS 上,可以使用 yu... -
数据结构与算法
基础数据结构1.1数组 一个含有数据的列表 array = ["apples", "bananas", "cucumbers", "dates", "elde... -
深入理解js中事件循环,调用栈,消息队列
概要 本文首先讲解什么是调用栈,什么是消息队列,以及事件循环,它们三者之间的关系。之后通过document.addEventListener('click', ()=>{console.log(111)})这... -
vue中$nextTick的实现原理
介绍 Vue中的nextTick方法是Vue的一个重要异步工具,它用于将回调延迟到下一个DOM更新循环之后执行。当你在Vue组件中更改了数据,而想要基于更新后的DOM执行操作时nextTick非常有用。它等待Vue完成DOM的更新,然后执行你的回调函...