为什么/ * @不是JavaScript中的注释? [英] Why /*@ isn't a comment in JavaScript?

查看:182
本文介绍了为什么/ * @不是JavaScript中的注释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此脚本 http://html5shiv.googlecode.com/svn/trunk/html5。 js 看起来像一个大的评论,但它的工作原理。为什么/ * @不像注释?

This script http://html5shiv.googlecode.com/svn/trunk/html5.js looks like a big comment, but it works. Why /*@ doesn't behave like a comment?

推荐答案

这使用了一个专有的微软功能,名为条件编译。就非Microsoft浏览器而言,它是一个注释(但他们不需要shiv)。

This uses a proprietry Microsoft feature called conditional compilation. As far as non-Microsoft browsers are concerned, it is a comment (but they don't need the shiv).

这篇关于为什么/ * @不是JavaScript中的注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆