使用形式:

getData(type) {
      const defaultType = this.selectedType
          this.thisData = v[type]||v[defaultType]
        })
}
对象名后直接接中括号
posted on 2020-08-24 11:46  occc  阅读(97)  评论(0)    收藏  举报