var bDate = new Date("2015-2-25"),
var nDate = new Date(),
var eDate = new Date(bb.getFullYear(),bb.getMonth(),bb.getDate());
var daycount = (bDate-eDate)/24/60/60/1000;
console.log(daycount);
时间: 2024-10-08 14:09:42
var bDate = new Date("2015-2-25"),
var nDate = new Date(),
var eDate = new Date(bb.getFullYear(),bb.getMonth(),bb.getDate());
var daycount = (bDate-eDate)/24/60/60/1000;
console.log(daycount);