js實現點擊實現當前時間格式爲2019/01/12/14:52:10週六

function but(){ var date= new Date(); //獲取日期 var year=date.getFullYear(); //獲取年份 var month=date.getMonth()+1; //獲取月份 var day=date.getDate(); //獲取天 var hour=date.getHours(); //獲取時 var minute=date.getMi
相關文章
相關標籤/搜索