用户反馈在IE 8下无法正常显示Web Uploader控件,并已安装了Flash插件。调试发现在内部抛出了Runtime Error的错误,关键代码如下:

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 );
}

最新文章

  1. 重写官方TodoList,对于初学react+redux的人来说,很有好处
  2. jQuery学习总结
  3. Unity3D热更新全书-脚本(一) 初识脚本
  4. webService 基础
  5. 二维码详解(QR Code)
  6. 多线程(pthread、NSThread、GCD)
  7. str和repr的
  8. 【性能测试】性能测试总结<二>
  9. codeforces 714C解题报告
  10. 测试数据库sql声明效率
  11. MVC3+EF4.1学习系列(六)-----导航属性数据更新的处理
  12. b端商家赋值权限
  13. 【java】泛型的作用是在编译阶段防止错误输入,绕过编译就绕过泛型,可用反射验证
  14. ASP.NET Web API决跨域问题
  15. 数据库学习之MySQL基础
  16. 推导式_zip
  17. React-JSX简介
  18. C#自定义按钮、自定义WinForm无边框窗体、自定义MessageBox窗体
  19. Android 开发第二步——建立文件
  20. python_basic

热门文章

  1. Compile cpp File Manually without IDE under Mingw Environment
  2. 给NSMutableArray添加copy属性就变成了NSArray
  3. hbase深入了解
  4. Lua常用时间函数
  5. mysql add foreign key 不成功
  6. consul在windows下的安装
  7. QT基础:QT 定时器学习
  8. git同时提交到两个仓库
  9. ios开发之--textview意见反馈页面(占位label,字数统计,提交按钮的交互设置)
  10. D盾 v2.0.6.42 测试记录