wancengx = Date()
wancengy = wancengx.replace('Fri Aug 26 ', '当然时间:');
wancengd = wancengy.replace(' GMT+0800', '');
alert(wancengd);
Date 操作日期和时间的对象
Date.getDate( ) 返回一个月中的某一天
Date.getDay( ) 返回一周中的某一天
Date.getFullYear( ) 返回Date对象的年份字段
Date.getHours( ) 返回Date对象的小时字段
Date.getMilliseconds( ) 返回Date对象的毫秒字段
Date.getMinutes( ) 返回Date对象的分钟字段
Date.getMonth( ) 返回Date对象的月份字段
Date.getSeconds( ) 返回Date对象的秒字段
Date.getTime( ) 返回Date对象的毫秒表示
欢迎光临 精易论坛 (https://125.confly.eu.org/) | Powered by Discuz! X3.4 |