摘要:
function formatNumWithDot (val) { var a = (val+"").indexOf(".") if (a > -1) { var b = (val + "").split(".") return (b[0] || 0... 阅读全文
摘要:
//获取天 var pubTime="2017-12-30" function buildDay(num){ num=num-1; var myDate = new Date(pubTime); //获取今天日期 myDate.setDate(myDate.getDate() - num); ... 阅读全文