toLocaleString () 方法,可以取得當地的日期與時間. // 建立Date 物件再使用toLocaleString()方法var date = new Date().toLocaleString();
確定! 回上一頁