防抖 function debounce(fun,delay){ let timer = null return function(){ if(timer){ clearTimeout(timer) } timer = setTimeout(()=>{ fun.apply(this,argument ...
分类:
编程语言 时间:
2021-06-11 18:25:11
阅读次数:
0
宝塔是一款Linux可视化软件 1.一键安装 apt-get install wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh 2.卸载 1)打开shell终端,输入命 ...
分类:
系统相关 时间:
2021-06-11 18:10:52
阅读次数:
0
一个新的需求,需要在shell脚本中退出当前登录用户 方式一 #!/bin/bash I=$(tty |awk -F '/dev/' '{print $2}') pkill -kill -t $I 方式二 #!/bin/bash I=$(who am i|awk '{print $2}') pkil ...
分类:
系统相关 时间:
2021-06-11 17:45:51
阅读次数:
0
<script> var resultValue = "1"; function throttle(fn) { console.log(arguments); let params = Array.from(arguments); params.shift(); let res = argument ...
分类:
其他好文 时间:
2021-06-10 18:43:06
阅读次数:
0
一,打开xshell,连接上 输入指令:mysql -h 192.168.10.120 -u root -p 回车,-h后面是数据库hostname,-u后面是数据库用户名,-p后面是密码 1 root@VM-0-12-centos[14:05:47]:~ 2 $ mysql -h ** -u ** ...
分类:
数据库 时间:
2021-06-10 18:40:18
阅读次数:
0
只是简单测试使用的话,在系统上操作就行,tina默认使用 procd-init 并在其中集成了喂狗功能,所以要先关了自带的喂狗功能。 先让procd停止喂狗: ubus call system watchdog '{"magicclose": true}' ubus call system watc ...
分类:
系统相关 时间:
2021-06-10 18:29:23
阅读次数:
0
onMount、onDestroy、beforeUpdate、afterUpdate、tick、挂载算更新 ...
分类:
其他好文 时间:
2021-06-10 18:23:43
阅读次数:
0
浏览器运行js步骤 原仓库 Podium = {}; Podium.keydown = function(k) { var oEvent = document.createEvent('KeyboardEvent'); // Chromium Hack Object.defineProperty(o ...
分类:
其他好文 时间:
2021-06-10 17:56:40
阅读次数:
0
最近需要用到mui,特此记录一下,欢迎交流。 除了可以使用addEventListener()方法监听某个特定元素上的事件外, 也可以使用.on()方法实现批量元素的事件绑定 HTML代码 <div id = "list"> <ul> <ul class="mui-table-view"> <li ...
分类:
其他好文 时间:
2021-06-10 17:35:56
阅读次数:
0
#!/bin/bash#echo "vm.swappiness = 0">> /etc/sysctl.confswapoff -a && swapon -asysctl -psystemctl stop firewalld.servicesystemctl disable firewalld.ser ...
分类:
数据库 时间:
2021-06-08 23:43:55
阅读次数:
0