- 博客(12)
- 资源 (21)
- 问答 (1)
- 收藏
- 关注
原创 vue页面拖拽div
模板:<div v-drag class="drag"></div>指令:// 自定义指令 实现可拖动 directives: { drag(el, bindings) { el.onmousedown = function(e) { var disx = e.pageX - el.offsetLeft var disy = e.pageY - el.offsetTop document.onmo
2021-11-26 17:25:18
578
原创 不装软件查看Mac的CPU温度、风扇转速等信息
打开命令终端输入:sudo powermetrics ... --samplers smc #如果显示 Password,就输入Mac 的开机密码,输入的时候密码不会显示出来,输入完回车就OK了。
2021-07-10 10:53:19
6870
2
原创 webstorm占大量CPU,占大量内存问题
1.没有忽略node_modules 一般是这个问题,容易解决,在git的忽略配置文件中加上就好了。2.git版本问题,我使用Git-2.31.1-64-bit有这个问题,后面按网上说的改为Git-2.19.0-64-bit。神奇的解决了。。。...
2021-07-08 16:49:36
7990
原创 JS递归遍历树结构,根据条件删除树的某些节点
function filterTree (data) { var newTree = data.filter(x => x.grade !== 1) newTree.forEach(x => x.children && (x.children = filterTree(x.children))) return newTree }根据条件删除树的某些节点。示例中条件为:grade !== 1...
2021-04-20 15:42:20
6091
原创 js时间格式化
// 时间格式化if(!new Date().format){ Date.prototype.format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours()...
2019-11-08 09:12:38
108
原创 大屏自适应使用transform scale解决了
关键代码function resize() { var ratioX = $(window).width() / 11520; var ratioY = $(window).height() / 4320; $("body").css({ transform: "scale(" + ratioX + "," + ratioY + ")", trans...
2019-11-08 09:04:32
10617
4
原创 muse-ui Date Picker 使用slot自定义提示圆点
<mu-paper :z-depth="1" class="demo-date-picker"> <mu-date-picker landscape :date.sync="date"> <template slot="day" sl...
2019-11-05 18:10:34
1065
转载 css解决input里面光标位置靠上问题
在css中如果我们定义了input高度在输入时会发现光标位置靠上了不在居中了,那么我们要如何解决此问题,下面一起和小编来看看吧。最近再做一个项目,发现input输入框内的光标有点怪异:不输入文字的时候,光标不处在input框的上下居中位置,而是偏上,当输入文字以后就变为正常了,开始我以为是浏览器的原因,但后来到各个浏览器查看一番,发现还真有点不同,于是百度了一下,找到了相关的文档读了读
2015-07-18 09:57:09
18952
node-v11.11.0-x64.zip
2020-06-17
BenVista PhotoZoom Pro
2015-03-26
jquery.mobile-1.3.2
2013-09-30
TA创建的收藏夹 TA关注的收藏夹
TA关注的人