在html中让一个text输入框的默认日期是今天

方法一:

 

 
 
 
today=new Date(); 
form1.test.value=today.getYear()+'年'+today.getMonth()+'月'+today.getDay()+'日'; 

 


方法二:

--------------------------------------------------------------- 


 
 
 

 


方法三:

--------------------------------------------------------------- 


 

 

 
 



你可能感兴趣的:(Other)