函數封裝: 獲取當前時間 格式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 l ...
2018-04-21 19:31 0 1157 推薦指數:
當前時間減一天 ...
1.函數封裝 /** * 獲取當前時間 * 格式YYYY-MM-DD */ Vue.prototype.getNowFormatDate = function() { var date = new Date(); var seperator1 = "-"; var ...
先來看下JS中的日期操作: 對獲取的日期格式化的方法 ...
function getNowFormatDate() { var date = new Date(); var seperator1 = " ...