zoukankan      html  css  js  c++  java
  • Javascript data对象中的月份(month)属性

    今天调试一个倒计时javascript脚本,多次debug依然不能显示正确的时间,经过google才得知月份参数不对,date中的月份从0开始:

    MethodDescription
    getDate() Get the day as a number (1-31)
    getDay() Get the weekday as a number (0-6)
    getFullYear() Get the four digit year (yyyy)
    getHours() Get the hour (0-23)
    getMilliseconds() Get the milliseconds (0-999)
    getMinutes() Get the minutes (0-59)
    getMonth() Get the month (0-11)
    getSeconds() Get the seconds (0-59)
    getTime() Get the time (milliseconds since January 1, 1970)
  • 相关阅读:
    MVC ActionResult JsonResult
    xml文件
    使用socket实现聊天功能
    使用多线程完成Socket
    Socket编程
    U1总结
    多线程
    IO
    单例模式
    日期
  • 原文地址:https://www.cnblogs.com/cuixiaochen/p/4301103.html
Copyright © 2011-2022 走看看