代码如下:[removed] function fresh() { var time1 = document.getElementById(“timeD”).value; for (var i = 1; i <= 5; i++) { var endtime = new Date(time1); var nowtime = new Date(); var leftsecond = parseInt((endtime.getTime() – nowtime.