| 类别: |
Javascript, function
|
| 标签: |
js, fSecondToTime, date
|
| 摘要: |
..
|
| 正文: |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <!-- DW6 -->
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>shawl.qiu template</title>
- <script type="text/javascript">
- //<![CDATA[
- onload =
- function()
- {
- alert(fNumToTime(258));
- }
-
- function fSecondToTime(iIpt)
- {// shawl.qiu script
- var dt1 = new Date(0,0,0,0,0,iIpt);
- return dt1.toLocaleTimeString();
- } // end function fSecondToTime
- //]]>
- </script>
- </head>
- <body>
- </body>
- </html>
|
| 文章相关信息: |
|
| 主题: |
js 从数值秒转换为 时间单位 函数 fSecondToTime
|
| 发表者: |
shawl.qiu
|
| 电子邮件: |
shawl.qiu@gmail.com
|
| QQ: |
908202921
|
| MSN: |
btbtd@msn.com
|
| Homepage: |
http://www.btbtd.org/
|
| Blog: |
http://blog.csdn.net/btbtd/
|
| 发表日期: |
2007-5-11 16:39:30
|
| 更新日期: |
2007-5-11 16:39:30
|
| 来源引用: |
shawl.qiu CSharp DotNet 个人资料管理系统
|
| 引用本页: |
http://gi.2288.org/mod/code/display/Default.aspx?aid=407
|