var base = +new Date();var base1 = new Date().getTime();console.log(base===base1);//truenew Date():参数传递