I include the statement: 开发者_JAVA百科\"use strict\"; at the beginning of most of my Javascript files.
I work on a relatively huge ECMAScript codebase (> 60,000 LOC) and we tend to struggle a bit with detecting errors for our dreaded friend Internet Explorer (especially 6 and 7).
The javascript, when run through JSLint yells at me and I am not sure why. /*jslint browser: true, devel: true, evil: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, newca
JSLint reports Insecure \'^\' for the following line. Why is that? Or is it just going to开发者_开发技巧 complain any time I want to negate a character class?
I wanted to check my JavaScript with JSLint. I am also using jQuery and JSLint seems to be very unhappy about jQuery.
I\'m trying to understand why JSLint complains about an implied global variable in the following example:
Using JSlint to validate my javascript. I am getting an error sayi开发者_Python百科ng eval is evil! Why is this and is there an alternative I can use?
I\'m relatively new to Javascript, and I\'d like to run the piece of code I spent the weekend playing with through JSLint so that it can point out where I was being a total idiot :)
I have an issue trying to make a function global when it is involved in closure.In the code listed below I have an anonymous method which defines at new function on the window called, getNameField.
Within a jQuery ajax function data supplied to the callback function on success is defined with success: function (data) { ...