
| 1 2 3 4 5 6 7 8 9 10 11 12 | function n(){     let now=new Date();     let y=now.getFullYear();     let mo=now.getMonth()+1;     let d=now.getDate();     let h=now.getHours();     let m=now.getMinutes();     let s=now.getSeconds();     document.getElementById('result').innerHTML=y+"."+mo+"."+d+" "+h+":"+m+":"+s; } | 
반응형
    
    
    
  '2019 > JavaScript' 카테고리의 다른 글
| JS getElement (0) | 2019.12.09 | 
|---|---|
| JS Array (0) | 2019.12.06 | 
| JS 숫자 (0) | 2019.12.06 | 
| JS String (0) | 2019.12.06 | 
| JS Function (0) | 2019.12.06 | 
 
										
									 
										
									 
										
									