其他分享
首页 > 其他分享> > es6知识点

es6知识点

作者:互联网

1.Object.freeze的使用

this.yesPoints = Object.freeze(res[0].yesPoints)

this.totalPoints = Object.freeze([...this.yesPoints,  ...this.absentPoints,  ...this.noPoints,])

<p v-for="(item,index) in totalPoints" :key="index">

{{ `${index + 1 + '.'}${item}`}}

</p>

 

2.

标签:知识点,...,yesPoints,Object,freeze,es6
来源: https://www.cnblogs.com/shusonghe/p/14811909.html