plupload附件上传插件IE8问题

前段时间遇到一个plupload上传插件问题,在其他浏览器上面运行很正常,但是就是在IE8上面第一次点击上传按钮无反应,后面再连续点击才ok。

我的初始化代码如下

_this.uploader = new plupload.Uploader({
			runtimes: 'gears,html5,flash,silverlight,html4',
			browse_button: _this._uploadFileBtnId, // you can pass in id...
			container: _this._contenterId, // ... or DOM Element itself
			url: _this._options.addUrl,
			multi_selection: false,
			chunk_size: '250kb',
			max_retries:0,

 


通过分析比对,可能是渲染引擎的问题,所以打印了下runtime
uploader.bind("Init", function (up, params) {
        $("#runtime").html("Current runtime: " + params.runtime + "");
    });
通过打印,先出现flash,然后在显示html4

这下问题出来了,按照先后顺序来检验runtime,使用flash渲染失败后,再用的html4来渲染成功。

所以解决方案如下:

将初始化参数中的runtimes,属性html4和flash调换位置,问题解决。

runtimes: 'gears,html5,html4,silverlight,flash'

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值