クリックして評価とフィードバックをお寄せください
MSDN
MSDN ライブラリ

  低帯域幅での表示をオンにする

We were unable to locate this content in ja-jp.

Here is the same content in en-us.

このページは次のバージョンについて記述しています。
.NET Framework 3.0

その他のバージョンについては、以下の情報を参照してください。
JScript
@cc_on Statement (Windows Scripting - JScript)

Updated: March 2009

Activates conditional compilation support within comments in a script.

@cc_on 

The @cc_on statement activates conditional compilation within comments in a script.

It is not common to use conditional compilation variables in scripts written for ASP or ASP.NET pages or command-line programs because the capabilities of the compilers can be determined by using other methods.

When you write a script for a Web page, always put conditional compilation code in comments. This enables hosts that do not support conditional compilation to ignore it.

It is strongly recommended that you use the @cc_on statement in a comment, so that browsers that do not support conditional compilation will accept your script as valid syntax:

An @if or @set statement outside of a comment also activates conditional compilation.

The following example illustrates the use of the @cc_on statement.

/*@cc_on @*/
/*@
    document.write("JScript version: " + @_jscript_version + ".");
    document.write("<br />");
    @if (@_win32)
        document.write("Running on the 32-bit version of Windows.");
    @elif (@_win16)
        document.write("Running on the 16-bit version of Windows.");
    @else
        document.write("Running on a different operating system.");
    @end
@*/

Date

History

Reason

March 2009

Modified introduction and remarks and added example.

Content bug fix.

コミュニティ コンテンツ   コミュニティ コンテンツとは
新しいコンテンツの追加 RSS  注釈
Processing
© 2009 Microsoft Corporation. All rights reserved. 使用条件  |  商標  |  プライバシー
Page view tracker