var time = new Date(1322195034000);
console.log(time.getFullYear()+"年");//年份
console.log(time.getMonth()+1+"月");//月份
console.log(time.getDate()+"日");//几号
var birthday= time.getFullYear()+"年"+time.getMonth()+1+"月"+time.getDate()+"日";
//使用Number()方法 将Date对象转换成时间戳
var newDay = new Date();
console.log(Number(newDay));
//使用日期对象Date.parse()方法
var newDay = new Date();
console.log(Date.parse(newDay));