單項(xiàng)選擇題

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.單項(xiàng)選擇題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";

3.單項(xiàng)選擇題以下不屬于正則的方法有()

A.match
B.test
C.split
D.splice

4.單項(xiàng)選擇題<p class="MsoNormal"> var str = "";
var reg = /]+>/g;一下哪個(gè)選項(xiàng)返回的是true()

A.str.match(reg)
B.reg.test(str)
C.reg.exec(str);
D.str.search(reg)