<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script src="vue.js"></script>
<script src="vuex.js"></script>
</head>
<body>
<div id="box">
</div>
</body>
<script>
var obj={
name:"veb",
age:20,
pe:"lksdj"
}
var obj2={
name:"lsdsden",
sex:"nv",
...obj
}
console.log(obj2);
var arr=[1,2,3,4]
var arr1=[5,...arr]
console.log(arr1)
var box=new Vue({
el:"#box",
data:{
}
})
</script>
</html>
网友评论