创建脚本存放目录:mkdir-p/home/lee/crontab编写监听脚本:vim/home/lee/ngrok.sh#!/bin/bashif[!-f/run/lib/ngrok.pid];thenecho"`date‘+%F%T‘`:‘ngrok‘停止工作">>/var/log/crontab/crontab.log/usr/bin/systemctlstartvsftpdfi
分类:
其他好文 时间:
2018-06-14 14:33:00
阅读次数:
169
vue 观察数组的变异方法 更新视图 push() pop() shift() unshift() splice(i,n,arr) sort(xx) reverse() ex: app.book.push({ name:'css', author:'lee' }) 有些方法不会改变数组 filter ...
分类:
编程语言 时间:
2018-06-14 01:16:48
阅读次数:
241
钟齐鑫speedzhong 新手爸妈们在养育过程中,都有哪些「必须分享一下」的养孩子经验陈语岚 还在考虑激光祛痣?皮肤科医生自己绝不会这样做 欧阳海龙 有哪些有趣的毒素? 062 59 猪小宝 如果评价荷兰发明者 Janjaap Ruijssenaars 通过不稳定物体摇摆机制把重力转化为能量? 0 ...
分类:
其他好文 时间:
2018-06-13 14:45:47
阅读次数:
156
代码:/*@desc:时间日期函数集合@author[Lee]<[<complet@163.com>]>*/functiondatetime(){/*@desc:内部方法,不足10补0@paraminput传入数值@returnret转换后的数值*/this.parsetime=function(input){varretif(input>=0&&in
分类:
编程语言 时间:
2018-06-11 11:55:02
阅读次数:
215
Lee@Lee MINGW64 ~$ git config --global user.name "lspshun" Lee@Lee MINGW64 ~$ git config --global user.email "lspshun@163.com" Lee@Lee MINGW64 ~$ cd ~ ...
分类:
其他好文 时间:
2018-06-09 22:12:05
阅读次数:
227
代码:/***@desc:xml与array互转*@author[Lee]<[<complet@163.com>]>*@property*data传入的数据*@method*arraytoxml数组转xml参数:data返回:xml*arraytoxmlxml转数组参数:xml返回:data*/classxmlarray{private$data;#传入数据/*@desc:
分类:
编程语言 时间:
2018-06-09 19:02:04
阅读次数:
210
代码:<?php/*@desc:获取文件大小@author<lee>[<complet@163.com>]@paramname文件名@returnsize文件大小byte*/functiongetfilesize($name){$content=file_get_contents($name);$size=strlen($content);return$size;}测
分类:
Web程序 时间:
2018-06-08 22:41:04
阅读次数:
213
一、javascript:代码:/*@desc:url解析函数@author<lee>[<complet@163.com>]@paramurl要查询的url@returnret解析后的对象*/functionparseurl(url){varreg=/(?:([A-Za-z]+):)?(\/{0,3})?(?:(.*):(.*)@)?([0-9.\-A-Za-z]+)(?:
分类:
编程语言 时间:
2018-06-08 17:29:55
阅读次数:
176
代码:/*@desc:字符串转json函数@author<lee>[<complet@163.com>]@paramstr字符串@returnjsonjson对象*/functionstrtojson(str){vararr=str.split(‘&‘)varjson={}for(variinarr){vark=arr[i].split(‘=‘)[0]varv=ar
分类:
编程语言 时间:
2018-06-08 15:48:20
阅读次数:
140
代码:/***@desc:正则匹配类*@author[Lee]<[<complet@163.com>]>*@method*1、geturl获取所有超链接*2、getimg获取所有图片*3、getaudio获取所有音频文件*4、getvideo获取所有视频文件*5、getparagraph获取所有段落*6、getuser获取自定义内容preg自定义正则,如:/<h1&g
分类:
Web程序 时间:
2018-06-07 00:38:14
阅读次数:
199