Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有允许 JSHINT 中的无括号 If 语句的标志?
IE:
if (true) return false;
我浏览了文档,但没有找到任何东西......
没关系,找到解决方案:
curly: false
http://www.jshint.com/docs/options/#curly