廖佳星 2018年12月21日 20:17 浏览(304) 回答(0)
待解决
Vue.js框架
  • vue.js里面怎么快速清空对象里面属性值?

  • 数据如下:

    let params = {

    a = this.name,

    b = this.name,

    c = this.name,

    d = this.name

    }


    params 里面的a,b,c,d只能有一个获得this.name,意思是当a获得this.name时,b,c,d怎么快速清空,变成a=this.name,b=" ",c=" ",d=" "


    一层一层判断赋值比较慢,要是数据很多的话有什么简便的方法?

解答0