#此刻

js获取此刻时间或者把日期格式时间转换成字符串格式的时间

getTime(val){if(val&valinstanceofDate){d=val;}else{d=newDate();};varyear=d.getFullYear();varmouth=(d.getMonth()+1)<10?('0'+(d.getMonth()+1)):(d.getMonth(...