计算天数

function days(){
    startDate = new Date($("#startDate").val());
    endDate= new Date($("#endDate").val());
   var dates= startDate.getTime() - endDate.getTime();
  var days= parseFloat(days / (1000 * 60 * 60 * 24));
  $("#days").attr("value",days)
}

 

posted @ 2017-10-18 11:27  halo-漾  阅读(148)  评论(0编辑  收藏  举报