[removed] using factory functions to replace class extends

前端 未结 0 1323
無奈伤痛
無奈伤痛 2021-01-26 03:54

I have a replacement for class User .... as a factor function below:

const user = (name, age) => {
    return {
        name: name,
        age: a         


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