
学习记录
小鱼仔么么
人生不像做饭,不能等万事具备了才下锅。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
lodash 常用方法总结
loadash 常用方法原创 2022-09-21 12:09:39 · 2763 阅读 · 0 评论 -
货币数字格式化
1⃣️循环 function toFormat(num) { let nums = (num || 0).toString(), result = ‘’ while(nuns.length > 3) { result = ‘,’ + nums.slice(-3) + result nums = nums.slice(0, num.length - 3) } if(num) { result = num + result } return result }原创 2021-05-08 17:09:15 · 185 阅读 · 0 评论 -
H5获取或设置data—*属性
H5获取或设置data—*属性1⃣️获取id的对象2⃣️设置或获取data-*的属性原创 2021-04-26 14:10:14 · 251 阅读 · 0 评论 -
vs code打不开终端解决方法
vs code打不开终端解决方法将vs code终端设置为git-bash更改setting.json配置{ ”terminal.integrated.shell.windows”:”c:\\program files\\git\\bin\\bash.exe” // git bash.exe 的所在地址}原创 2021-04-16 11:24:59 · 1764 阅读 · 0 评论 -
面试题学习记录
1、编写一个方法,分别接收 k,和一个数组, 返回这个数组的第k大的值function getKMax(k, arr) { let set = new Set(res) let newArr = Array.from(set) let res = newArr.sort((a,b)=> b-a) if(res[k-1]== 'undefined') { console.log(’无此值‘) } else { return res[k-1] }}2、proto与p原创 2021-03-30 18:35:38 · 139 阅读 · 0 评论