How to add a prop's value to a class' instance only when the prop name is a class field

后端 未结 0 1721
生来不讨喜
生来不讨喜 2020-12-07 01:50

Imagine I have something like this

export default class Record {
  date: Date = new Date()
  temperature?: number
  hum         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题