Is there a way to copy an entire object to a class's properties in one line in javascript?

前端 未结 0 1279
小蘑菇
小蘑菇 2021-02-07 18:29

Right now I have a class that looks like this:

class User {
  static collection = "users"

  public id?: string
          


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