加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

uploadify flash上传组件chrome频繁崩溃的解决方法

发布时间:2020-12-15 17:25:02 所属栏目:百科 来源:网络整理
导读:chrome更新到版本40,发现这个组件频繁崩溃,受不了了。百度了一会,中文的解决方法都不管用,最后在 stackoverflow 找的方法好用。原理老外也不是很清楚。 使用setTimeout http://stackoverflow.com/questio ... return-aw-snap-page I've found that addin
chrome更新到版本40,发现这个组件频繁崩溃,受不了了。百度了一会,中文的解决方法都不管用,最后在 stackoverflow 找的方法好用。原理老外也不是很清楚。
使用setTimeout

http://stackoverflow.com/questio ... return-aw-snap-page

I've found that adding a setTimeout fixes this. This would indicate a race condition in Chrome / Chrome's Flash implementation / Uploadify's Flash app,the circumstances of which are not clear. Nonetheless,it appears to work in all situations for our use case.

$(document).ready(function () {
    setTimeout(function () {
        $('foo').uploadify({...});
    },0);
});
This isn't a good answer,but in the absence of a solution,it's a usable workaround.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读