Thu Aug 22 2013 15:12:00 GMT 0800 (中国標準時)
変換
function formatTen(num) {
return num > (num "") : ("0" num);関数 formatDate(date) {
var year = date.getFull Year();
var month = date.getDate();
var time = date .getHours();
var minutes = date.getSeconds();
return year "-" formatTen(month) "-" formatTen(day); 🎜 >}