.函数封装 获取当前时间 格式YYYY MM DD Vue.prototype.getNowFormatDate function var date new Date var seperator var year date.getFullYear var month date.getMonth var strDate date.getDate if month gt amp amp month ...
2018-04-14 10:21 0 934 推荐指数:
函数封装: /** * 获取当前时间 * 格式YYYY-MM-DD */ Vue.prototype.getNowFormatDate = function() { var date = new Date(); var seperator1 = "-"; var year ...
当前时间减一天 ...
先来看下JS中的日期操作: 对获取的日期格式化的方法 ...
function getNowFormatDate() { var date = new Date(); var seperator1 = " ...