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