详解JS构造函数中this和return 先看一段代码, function Foo(name,age){ this name=name; this age=age; } var foo=new Foo("Tom" JavaScript 2022-04-05 133 点赞 2 评论 201 浏览