@cc_on
JScript3.0+Syntax
@cc_on
Description
The @cc_on statement is used to activate conditional compilation in the scripting engine.
Example
Listing 9.11 shows where the @cc_on statement would be used within JScript code to get the JScript revision.
Listing 9.11 Activate Conditional Compilation
<script language="JScript"> <!-- Hide //Set conditional compilation so @_jscript_version variable will be defined. @cc_on //Display the JScript verision number using the @_jscript_version variable document.write("The JScript version is ",@_jscript_version); //Hide End --> </script> |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.