javascript 时间戳转日期格式
| 代码如下 | |
|
Date.prototype.format = function(format)
var testDate = new Date( 1320336000000 );//这里必须是整数,毫秒 var testStr = testDate.format("yyyy年MM月dd日hh小时mm分ss秒"); |
|
- 上一篇:js 漂浮广告代码
- 下一篇:JS点击输入框,框内文字消失
| 代码如下 | |
|
Date.prototype.format = function(format)
var testDate = new Date( 1320336000000 );//这里必须是整数,毫秒 var testStr = testDate.format("yyyy年MM月dd日hh小时mm分ss秒"); |
|
@CopyRight 2002-2008, 1SOHU.COM, Inc. All Rights Reserved QQ:1010969229