• 2022-06-01
    已知我们获取了一个日期对象date下列说法正确的是
    A: date.getMonth()+返回月份+0-11
    B: date.Month()+返回月份+1-12
    C: date.Month()+返回月份+0-11
    D: date.getMonth()+返回月份+1-12
  • A

    内容

    • 0

      Date 对象的 getMonth() 获取到的值比实际月份小1

    • 1

      下列对于时间对象描述正确的是( ) A: 时间对象通过new Date()来创建 B: getDay返回的是当前的天数 C: getMonth返回的是月份 D: getFullYear返回的年分

    • 2

      以下对于Date对象的说法正确的是( ) A: new Date();创建一个Date对象,同时获取当前的日期时间信息。 B: getDate()从 Date 对象返回一个月中的某一天 (1 ~ 31) C: getDay()从 Date 对象返回一周中的某一天 (0 ~ 6) D: getFullYear()从 Date 对象以四位数字返回年份

    • 3

      下面哪个方法可以获取日期对象Date中的月份() A: getYear() B: getMonth() C: getDate() D: getFullYear()

    • 4

      在JavaScript中,我们可以使用Date对象的()方法来获取当前的月份。 A: getMonth() B: getFullMonth() C: getDate() D: getDay()