技术博客

探索前端开发、算法、系统架构等技术领域的深度思考与实践经验

175
篇文章
34
个分类
123
个标签

快速导航

按分类浏览文章

精选文章

推荐阅读的优质内容

最新文章

最近发布的文章

Axios 中 Cookie 操作及代码详解

1)Cookie名称,Cookie名称必须使用只能用在URL中的字符,一般用字母及数字,不能包含特殊字符,如有特殊字符想要转码。如js操作c

Classnames库代码解读

classnames库是日常工作中用来操作dom中class相关的工具函数,这里我们对它进行解读 使用 npm install classnames –save 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

#js

Lodash ToNumber

toNumber 🔗lodash中转数字函数 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 …

#js

数字加减问题解决精度问题

1 2 3 4 5 6 7 8 9 10 11 function plus(num1, num2) { const num1Digits = (num1.toString().split('.')[1] || '').length; const num2Digits …

#js

判断是不是DOM元素

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 function isElement(obj: any) { try { // Using W3 DOM2 (works for FF, Opera and Chrome) return obj instanceof …

#js #dom

Classname Operation

操作相关classname工具函数 1 2 3 4 5 6 7 8 9 10 11 // 增加目标class function addClass(target = '', srcCls = '') { const clss = target.split(/\s+/) …

#css #js

防抖与节流

no-refresh-page 🔗 history.pushState( {}, null, this.$route.path + ‘#’ + encodeURIComponent(params) )

#js

HTML Element API 用法

Element.append 🔗方法在 Element的最后一个子节点之后插入一组 Node 对象或 DOMString 对象。 被插入的 DOMString 对象等价为 Text 节点。 Element.append((Node or DOMString)… nodes); …

#Element #js

常用判断函数

是否是promise 🔗 1 2 3 export function isPromise(object: any): object is Promise<any> { return Promise.resolve(object) === object; }

#js

Linux 常用命令

查看端口占用 🔗 lsof -i tcp:80 所有端口 🔗 netstat -ntlp 查看端口进程 🔗 netstat -lnp|grep 端口号 netstat -anp|grep 端口号 Linux内核版本命令 🔗 cat /proc/version uname -a 查看Linux系统版本 …

#linux

热门标签

探索热门技术话题

订阅更新

获取最新的技术文章和深度思考,直接发送到您的邮箱