Web Uploader在低版本IE下无法显示Flash的一种情况
2017-08-02 17:17
337 查看
用户反馈在IE 8下无法正常显示Web Uploader控件,并已安装了Flash插件。调试发现在内部抛出了Runtime Error的错误,关键代码如下:
可以发现是对应的FlashRuntime并未找到。查看源代码发现在注册FlashRuntime时候有一个版本判断,如果没有符合最低版本要求则不注册。查看用户安装的Flash版本确实低于该要求。
Runtime.create = function( opts, orders ) { var type, runtime; orders = orders || Runtime.orders; $.each( orders.split( /\s*,\s*/g ), function() { if ( factories[ this ] ) { type = this; return false; } }); type = type || getFirstKey( factories ); if ( !type ) { throw new Error('Runtime Error'); } runtime = new factories[ type ]( opts ); return runtime; };
可以发现是对应的FlashRuntime并未找到。查看源代码发现在注册FlashRuntime时候有一个版本判断,如果没有符合最低版本要求则不注册。查看用户安装的Flash版本确实低于该要求。
FlashRuntime.register = function( name, component ) { component = components[ name ] = Base.inherits( CompBase, $.extend({ // @todo fix this later flashExec: function() { var owner = this.owner, runtime = this.getRuntime(); return runtime.flashExec.apply( owner, arguments ); } }, component ) ); return component; }; if ( getFlashVersion() >= 11.4 ) { Runtime.addRuntime( type, FlashRuntime ); }
相关文章推荐
- Ubuntu上谷歌浏览器显示flash版本低,无法播放视频
- flash player for ie无法安装,提示版本过低解决办法
- webdriver中PDF控件无法显示的问题(IE兼容性)
- vs2008与IIS 7.0使用在vista上时出现的问题及解决方法(Internet Explorer 无法显示该页面)(VS2008: IE Cannot Display Web Page)
- windows 2003 IE无法显示flash
- 修改windows2008 ie安全级别 无法执行脚本 无法显示Flash
- IE无法显示FLASH的解决方法
- IE7下flash无法播放的一种解决方法
- 关于创建maven webapp项目无法修改web版本问题
- webuploader在ie7下的flash模式的使用
- Echarts ecomfe 触摸屏 touch 在IE10下无法显示悬浮框
- [Web开发] IE 所有版本打包下载,网页兼容测试必备
- WebUploader在display none无法运行
- 解决lantern4.4.1版本关闭后IE,Chrome无法上网问题
- Qt 5.6.0 使用QML在某些情况下一构造WebView/WebEngineView就出错的一种解决办法
- 使用NOD32引起ASP.NET Development Server的IE页面无法显示(错误的端口号)
- maven web创建之后报错的一种情况及解决方案
- servlet使用声明式异常处理指定错误跳转页面,ie下无法正常显示
- 解决方案:webview部分内容不显示的问题,或者无法跳转
- Windows 2003 Server R2 x64 IIS6.0 eWebEditor无法显示的问题