js在某个数据类型前使用‘+’,这个操作目的是为了将该数据类型转换为Number类型,如果转换失败,则返回NaN;
+new Date() 会调用Date.prototype 上面的 valueOf方法
valueOf方法功能与getTime() 方法一样,都返回以数值格式表示的一个 Date 对象的原始值,从1970年1月1日0时0分0秒(UTC,即协调世界时)到该日期对象所代表时间的毫秒数
console.log( +new Date(2014, 9, 3))
console.log( new Date(2014, 9, 3).getTime())
console.log( +new Date(2014, 9, 3).valueOf())
//以上打印结果相同