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