getRemainderTime (startTime){
var EndTime= new Date(startTime.replace(/-/g, “/“));//截止时间
//var EndTime= new Date(“2015-2-5”);//截止时间
var NowTime = new Date();
var t =EndTime.getTime() - NowTime.getTime();
var d=Math.floor(t/1000/60/60/24);
var h=Math.floor(t/1000/60/60%24);
var m=Math.floor(t/1000/60%60);
var s=Math.floor(t/1000%60);
if(!isNaN(d) && !isNaN(h) && !isNaN(m) && !isNaN(s)){
this.endDate = d+”天 “+h+”:”+m+”:”
// return (d+”天 “+h+”:”+m+”:”+s);
}
},