var unixTimestamp = new Date( 1477386005*1000 ) ;//获取时间戳 commonTime = unixTimestamp.toLocaleString();//转换为yyyymmddhhmmss格式
//具体实现方法
Date.prototype.toLocaleString = function() { return this.getFullYear() + "年" + (this.getMonth() + 1) + "月" + this.getDate() + "日 " + this.getHours() + "点" + this.getMinutes() + "分" + this.getSeconds() + "秒"; };