TE
科技回声
首页
24小时热榜
最新
最佳
问答
展示
工作
中文
GitHub
Twitter
首页
A JavaScript Constructor Problem, and Three Solutions
7 点
作者
_mayo
将近 11 年前
1 comment
facorreia
将近 11 年前
I like this thorough explanation.<p>In my code, I mostly avoid this issue by relying on jshint's "newcap" option to detect when a constructor function is called without the new keyword.