从时间戳获取日期不起作用-javascript 什么是typeof(timestamp)和typeof(current)。如果以毫秒形式传入,则需要为int。请检查typeof days[i]以及var myDate=new Date(“143205120
从时间戳获取日期不起作用-javascript从时间戳获取日期不起作用-javascript 什么是typeof(timestamp)和typeof(current)。如果以毫秒形式传入,则需要为int。请检查typeof days[i]以及var myDate=new Date(“143205120,javascript,Javascript,从时间戳获取日期不起作用-javascript 什么是typeof(timestamp)和typeof(current)。如果以毫秒形式传入,则需要为int。请检查typeof days[i]以及var myDate=new Date(“143205120000”)是!==var myDate=新日期(143205120000) _.each(reduced[i].data, function(timerevenueObj) { var timestamp = timereve
什么是
typeof(timestamp)
和typeof(current)
。如果以毫秒形式传入,则需要为int。请检查typeof days[i]
以及var myDate=new Date(“143205120000”)代码>是!==<代码>var myDate=新日期(143205120000)代码>
_.each(reduced[i].data, function(timerevenueObj) {
var timestamp = timerevenueObj[0];
for(var j = 0; j < days.length; j++)
{
var current = new Date(timestamp);
var previous = days[i];
console.log(current);
if (current.toDateString() === previous.toDateString()) {
console.log("*** Same day ***");
rev = timerevenueObj[1];
}
innerdata.push(timerevenueObj[1])
//console.log(timerevenueObj);
});
var date = new Date(1432051200000);