多項選擇題以下獲取時間戳方式哪些具有兼容性?()
A.new Date(’2019-1-1’)
B.new Date(’2019/1/1’)
C.new Date(’2019,1,1’)
D.new Date(’2019.1.1’)
您可能感興趣的試卷
你可能感興趣的試題
1.單項選擇題
var target = {};
var user = Object.assign(target, {name:'lili',age:10,address:'山東'}, {age:18,name:'zs'});
console.log(target)以下打印的結(jié)果正確的是()
A.{name:"lili",age:10,address:"山東"}
B.{name:"zs",age:18,address:"山東"}
C.{name:"zs",age:18}
D.{}
2.單項選擇題
下列程序的輸出是:()。
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.以上都不對