报错信息
object doesn't support this property or method
请看jquery官方说明:
jQuery Pre-Release Builds
The jQuery team is constantly working to improve the code. Each commit to the Github repo generates a work-in-progress version of the code that we update on the jQuery CDN. These versions are sometimes unstable and not suitable for production sites. We recommend they be used to determine whether a bug has already been fixed when reporting bugs against released versions, or to see if new bugs have been introduced. There are two versions, one for the 1.x branch (supports IE 6/7/8) and one for the 2.x branch (not for use with old IE).
其中jquery 分为 1.x 和 2.x 。2.x 不支持IE6/7/8 如果你的版本的是2.x 肯定在IE8中肯定有错误,但是错误不是这个。
这个错误是,我们要兼容IE8时,降版本,从2.x 降到 1.x 但是页面引用或者特性没有清干净导致的。所以请检查的界面上引用。
我的的项目,出现这样错误时因为 虽然页面没有引用了,但是我还是保留 2.x 的文件,结果VS2012 MVC4的项目自动引用最高版本的jquery导致出现这个问题,删除就好了。
RE: IE8 - Object doesn't support this property or method