先来看下JS中的日期操作: 对获取的日期格式化的方法 ...
函数封装: /** * 获取当前时间 * 格式YYYY-MM-DD */ Vue.prototype.getNowFormatDate = function() { var date = new Date(); var seperator1 = "-"; var year ...
------------------------------------------------------------------------------------ js 获取当前日期时间 格式为 yyyy-mm-dd hh:MM:ss Date.prototype.format ...
先来看下JS中的日期操作: 对获取的日期格式化的方法 ...