Sometimes I see @cc_on
in JavaScript. What does it mean?
views:
499answers:
1
+10
A:
It's for conditional compilation. Seems to be a feature of Microsoft's "JScript" ECMAScript implementation.
unwind
2009-08-27 14:25:01
Not IE but JScript (ECMAScript implementation used in IE). This is important because JScript, for example, is also used in ASP, Windows Script Host, etc. See http://en.wikipedia.org/wiki/JScript
kangax
2009-08-28 04:37:24
@kangax: Thanks, updated the answer.
unwind
2009-08-28 08:04:17