js: 날짜 카운트다운
2374 단어 작은 물건
function showTime(){
var enddate=new Date("2017,6,17");
var date=new Date();
var leftdate=enddate.getTime()-date.getTime();
var time=Math.ceil(leftdate/(24*1000*60*60));//
document.getElementById("dao").innerHTML=time;
// alert(leftdate);