VUE 获取对象{}的key值

let keys = Object.keys(data)
 for (let i =0; i < keys.length; i++) {
     if(keys[i]!='creationDate'){
        this.$set(this.config.data[index], keys[i], data[keys[i]])
     }
 }

 

posted @ 2022-03-02 11:43  哎丫丫呀喂  阅读(3448)  评论(0编辑  收藏  举报