您好,欢迎来到澳泰情感。
搜索
您的当前位置:首页关于JS效果功能的实现

关于JS效果功能的实现

来源:澳泰情感


这篇文章主要介绍了关于关于JS效果功能的实现,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下

平台实时监控平台,统计报错数

window.onerror = function(a,b,c,d,e){
	(new Image).src = '/m?p=${location.href}&a=${a}&b=${b}&c=${c}&d=${d}&e=${e.statck}'
}

Linux 打印日志输出

tail -f access.log | awk '/m/{c++; print c,$0} {}'

获取当前时间 YY-mm-dd HH:ii:ss

function curentTime(){ 
 var now = new Date();
 var year = now.getFullYear();
 var month = now.getMonth() + 1;
 var day = now.getDate();
 var hh = now.getHours();
 var mm = now.getMinutes();
 var ss = now.getSeconds();

 var clock = year + "-";
 if(month < 10) clock += "0";
 clock += month + "-";
 
 if(day < 10) clock += "0";
 clock += day + " ";
 
 if(hh < 10) clock += "0"; 
 clock += hh + ":";

 if (mm < 10) clock += '0'; 
 clock += mm + ":";

 if (ss < 10) clock += '0'; 
 clock += ss; 

 return(clock);

Copyright © 2019- aotx.cn 版权所有

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务