怎么知道函数被new了 成长ing12138 2020-11-13 89 阅读1分钟 function Foo() { if(!this instanceof Foo) { console.log('被new了') } }