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