如何在 javascript 中使用 Date 函数制作这样的格式:
Jun 23, 2010 12:00 AM
var months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
var date = new Date();
console.log(months[date.getMonth()] + " " + date.getDate() + ", " + (date.getYear()+1900) + " " + date.getHours() + ":" + date.getMinutes());
//Example Output: Apr 28, 2013 20:47