// 获取某个时间格式的时间戳
var stringTime = "2014-07-10 10:21";
var timestamp2 = Date.parse(new Date(stringTime));
//2014-07-10 10:21:12的时间戳为:1404958872
console.log(stringTime + "的时间戳为:" + timestamp2);