JS incrementing all fields with bracket notation

前端 未结 0 1158
长发绾君心
长发绾君心 2021-01-04 03:26

I have a class with number fields a, b, and c, and now I want to take an array and add the first element to a, the second element to b, and the third element to c. I.e.:

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