Should I 'use strict' for every single javascript function I write?
问题 Should I 'use strict' for every single javascript function I write? What is a good practice to use strict in a large AngularJS project? Using it globally can break a third party library that doesn't support it, but doing 'use strict' every single time is just a lot of repetition. 回答1: On this question, do beware a general tendency to oversimplify. First, all of your code absolutely should be run in strict mode. Core modern javascript functionality is changed (see .call() and apply()) or