JS基礎知識點(5)——特殊字符 && date對象

特殊字符: 「」:雙引號 ':單引號 \:轉義字符 實例:輸出路徑 \r:回車 \n:換行 date對象: 方法: getFullYear()/setFullYear():獲取/設置年份 getMonth();獲取月份 getData();獲取日期; getHourses();獲取小時; getMinutes();獲取分鐘數; getSeconds();獲取秒數; getDay();獲取星期;(這
相關文章
相關標籤/搜索