chrome更新到版本40,发现这个组件频繁崩溃,受不了了。百度了一会,中文的解决方法都不管用,最后在
stackoverflow
找的方法好用。原理老外也不是很清楚。
使用setTimeout
使用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.