1 function formatDate(date, fmt) { 2 if (/(y+)/.test(fmt)) { 3 fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length)); 4 } 5 let o = { 6 'M+': da... Read More
posted @ 2017-06-03 12:15 JohnYunhan Views(222) Comments(0) Diggs(0) Edit