1. 首页
  2. 移动开发
  3. 其他
  4. 通过Jscript中@cc_on 语句识别IE浏览器及版本的代码

通过Jscript中@cc_on 语句识别IE浏览器及版本的代码

上传者: 2020-12-13 07:09:28上传 PDF文件 33.08KB 热度 8次
激活条件编译支持。 @cc_on 备注 @cc_on 语句激活脚本引擎中的条件编译。 强烈推荐在注释中使用 @cc_on 语句,以使不支持条件编译的浏览器将您的脚本视为有效语法而接受它: /*@cc_on*/ // The remainder of the script.或者,在注释外的一个 @if 或 @set 语句也将激活条件编译。 要求 版本 3 请参见 参考 @if...@elif...@else...@end 语句 @set 语句 代码如下: /*@cc_on @if (@_jscript_version > 5.7) [removed](“You are using IE8+”);
下载地址
用户评论