摘要:
日期格式转化为时间戳: function timeTotimestamp(date) { var time = new Date(date).getTime() / 1000; //除以1000为秒,否则为毫秒 return (time); } 时间戳转化为日期格式: function timest 阅读全文
摘要:
我经常在代码中看到很长串判断,看到就头疼,简单的整理一下。 比如:(client.top>=0&&client.left>=0&&client.bottom)<=(win.top||win.left)+win.bottom 解决:这些运算符都是自左向右运算,结合实际逐一判断对错(true or fa 阅读全文