Jquery使用uploadify 实现断点续传(IE bug)

今天要使用一个功能,在网页上找了上传文档,因为后期要考录到上传视频和其他附件,网上找了半天还是 uploadify 最实用。

接下来就说一下关于uploadfiy 使用中的几个bug


IE 中 出现js 缺少对象错误

错误定位在jquery中 
此处输入图片的描述

排查后发现是应用Jquery Validition 验证控件导致的,在Jquery Validition控件初始化中,有下面代码

$currentSection
            .validateDelegate(":text, [type='password'], [type='file'], select, textarea, " +
                "[type='number'], [type='search'] ,[type='tel'], [type='url'], " +
                "[type='email'], [type='datetime'], [type='date'], [type='month'], " +
                "[type='week'], [type='time'], [type='datetime-local'], " +
                "[type='range'], [type='color'] ",
                "focusin focusout keyup", delegate)
            .validateDelegate("[type='radio'], [type='checkbox'], select, option", "click", delegate);

我尝试使用jQuery 1.9和1.12都依然存在这个问题。所以只将1.8.2的代码更改了,其它还有一处碰到object这个元素都会有这个问题。

更改后的jquery 1.8.2 下载:

更改后的jquery

这样关于IE伤的 .swf 不能加载的bug就算解决了,更换一下jquery