Why /*@ isn't a comment in JavaScript?

前端 未结 3 740

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?

3条回答
  •  爱一瞬间的悲伤
    2020-12-14 10:48

    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).

提交回复
热议问题