摘要:
网页可见区域宽: document.body.clientWidth; 网页可见区域高: document.body.clientHeight; 网页可见区域宽: document.body.offsetWidth (包括边线的宽); 网页可见区域高: document.body.offsetHei 阅读全文
posted @ 2018-03-21 21:45
刘世涛6192
阅读(144)
评论(0)
推荐(0)
摘要:
// 验证开头不为零的正整数 WST.zhengZhengShuIn = function (className){ var rex = /^[1-9]{1}[0-9]*$/;//正整数 $("."+className).keyup(function(event){ var event = event || window.event; var va... 阅读全文
posted @ 2018-03-21 17:32
刘世涛6192
阅读(418)
评论(0)
推荐(0)
摘要:
1. 将时间戳转换成日期格式 例子 ? // 比如需要这样的格式 yyyy-MM-dd hh:mm:ss var date = new Date(1398250549490); Y = date.getFullYear() + '-'; M = (date.getMonth()+1 < 10 ? ' 阅读全文
posted @ 2018-03-21 17:10
刘世涛6192
阅读(223)
评论(0)
推荐(0)
摘要:
laydate 代码下载网址:https://github.com/1290800466/mac_win/tree/master/laydate 阅读全文
posted @ 2018-03-21 16:34
刘世涛6192
阅读(811)
评论(0)
推荐(0)