function localDateForMat(obj) { da = new Date(obj); var year = da.getFullYear(); var month = da.getMonth() + 1; var date = da.getDate(); //console.log([year, month, date].join(‘/‘)); return [year, month, date].join(‘/‘);
原文地址:https://www.cnblogs.com/whhsq/p/8352188.html
时间: 2024-10-16 00:48:54