记一道有意思的JavaScript面试题

function Foo() { this.getName = function() { console.log(3); return { getName: getName } }; getName = function() { console.log(1); }; return this;
相关文章
相关标签/搜索