多项选择题
以下获取时间戳方式哪些具有兼容性?()
A.new Date(’2019-1-1’)
B.new Date(’2019/1/1’)
C.new Date(’2019,1,1’)
D.new Date(’2019.1.1’)
点击查看答案
相关考题
-
单项选择题
var target = {}; var user = Object.assign(target, {name:lili,age:10,address:山东}, {age:18,name:zs}); console.log(target)以下打印的结果正确的是()
A.{name:"lili",age:10,address:"山东"}
B.{name:"zs",age:18,address:"山东"}
C.{name:"zs",age:18}
D.{} -
单项选择题
下列程序的输出是:()。 function Ball() { } Ball.prototype = { colors:[green,yellow] } var ball1 = new Ball() var ball2 = new Ball() ball1.colors.push(blue) console.log(ball2.colors)
A.[’green,’yellow’]
B.[’green,’yellow’,’blue’]
C.undefined
D.以上都不对 -
单项选择题
var warp = document.getElementById("wrap");以下DOM操作存在语法正确的有()
A.wrap.innerHTML("HELLO WORLD");
B.wrap.style.background-image="img/bg.jpg"
C.wrap.style.border="1px solid#f00";
D.wrap.width="200px";
