码迷,mamicode.com
首页 >  
搜索关键字:interval    ( 2017个结果
js setInterval参数设置
语法 setInterval(code,interval) ①可以有第三个参数,第三个参数作为第一个参数(函数)的参数 ②第一个参数是函数,有三种形式: 1、传函数名,不用加引号,也不加括号,如 setInterval( func, 1000) 2、传匿名函数,实际和1是一样的 3、传函数字符串,加 ...
分类:Web程序   时间:2018-11-20 19:31:23    阅读次数:134
Vue 消息无缝滚动
vue实现消息向上无缝滚动效果 ... 样式 .new-list{ line-height: 28px; transition: top 0.5s; } .anim{ transition: all 0.5s; margin-top: -28px;//高度等于行高 } ...
分类:其他好文   时间:2018-11-20 13:19:02    阅读次数:218
华为公钥ssh登录。自动备份设置。
systemrsalocal-key-paircreatestelnetserverenableNewKeyfromLinuxssh-keygensystemrsapeer-public-keynewpublic-key-codebegin308201080282010100E87D066DC75D3421A1FA2FACAEDEB48BDA74B299E7B3?FD5B4D52EFD013F53
分类:其他好文   时间:2018-11-19 20:07:51    阅读次数:220
监控cpu、内存 <shell>
获取cpu、内存结果 pid=$1 获取进程pid echo $pid interval=1 设置采集间隔 while true do echo $(date +"%y %m %d %H:%M:%S") proc_memlog.txt cat /proc/$pid/status|grep e VmR ...
分类:系统相关   时间:2018-11-19 13:33:30    阅读次数:264
验证码定时刷新
from threading import Thread, Timer import random class code: def __init__(self): self.make_cach() def make_cach(self, interval = 5): self.cach = self... ...
分类:其他好文   时间:2018-11-18 17:05:32    阅读次数:147
Centos7.5 配置 Nginx+Keepalived 搭建高可用负载均衡
Centos7.5 配置 Nginx+Keepalived 搭建高可用负载均衡
分类:其他好文   时间:2018-11-17 16:04:40    阅读次数:150
workerman定时器使用 php定时任务
add int \Workerman\Lib\Timer::add(float $time_interval, callable $callback [,$args = array(), bool $persistent = true]) 定时执行某个函数或者类方法 参数 time_interval... ...
分类:Web程序   时间:2018-11-16 19:13:06    阅读次数:831
实现一个重试装饰器
class retry(object): """A retry decorator.""" def __init__(self, exception=Exception, timeout=None, retries=None, interval=0.001, logfun=lambda s: pri ...
分类:其他好文   时间:2018-11-15 01:27:45    阅读次数:193
js每隔一段时间执行函数
...
分类:Web程序   时间:2018-11-14 19:14:19    阅读次数:256
MySQL 日期时间相关函数
第一部分:时间差函数 timestampdiff、datediff、timediff 一、时间差函数:timestampdiff 语法:timestampdiff(interval, datetime1,datetime2) 结果:返回(时间2-时间1)的时间差,结果单位由interval参数给出。 ...
分类:数据库   时间:2018-11-12 14:56:39    阅读次数:231
2017条   上一页 1 ... 51 52 53 54 55 ... 202 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!