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