
时间数据处理
爱前端不爱恋爱
小白一个~喜欢前端
展开
-
查询两时间段间的月份
function getMonthBetween(start,end){//返回时间段的月份 start=start.slice(0,7); end=end.slice(0,7); var result = []; var s = start.split("-")...原创 2019-08-21 11:56:20 · 184 阅读 · 0 评论 -
返回时间段内各种时间间隔的数组
这里时间插件你们自己定义 代码如下 Date.prototype.Format = function(fmt)//日期格式 { var o = { "M+" : this.getMonth()+1, //月份 "d+" : this.getDate(), /...原创 2019-08-30 17:20:27 · 1401 阅读 · 1 评论