关于创建日期类下列说法正确的是( )
A: var now:Date = new Date();
B: var now:timer = new Timer ();
C: var now: date = new date();
D: var now:timer = new Timer ();
A: var now:Date = new Date();
B: var now:timer = new Timer ();
C: var now: date = new date();
D: var now:timer = new Timer ();
举一反三
- Date对象问题4:Date对象正确获取年份的方法是: A: var now = new Date();var year = now.Year(); B: var now = new Date();var year = now.getYear(); C: var now = new Date();var year = now.getFullYear(); D: var now = new Date();var year = now.getNowYear();
- Date对象问题3:能获得当前日期的是: A: var now = Date.now(); B: var now = new Date(); C: var now = new Date(now); D: var now = Now();
- JavaScript中,产生当前日期的方法是( )。 A: Now(); B: Date(); C: new Date(); D: new Now();
- 下面不是用于创建一个新的对象的语句是 A: var d = new Date(); B: var f = (); C: var o = new Object(); D: var o = {title: "hello", author: "Tom"};
- 不属于原始类型的是() A: var b =ture; B: var s ="aa"; C: var d =new Date(); D: var n =123;