ext开发中火狐浏览器不报错,但是到IE浏览器中报'events'为空或不是对象,由于IE不能用firebug捕捉错误,当代码量很大时用alert()很难找到,只能一点一点的删除代码测试。
当IE中报这个错误时多数为items中最后一项多了个逗号:
如:
Ext.onReady(function(){
new Ext.Panel({
renderTo:"hello",
tltie:"容器组件",
width:500,
height:200,
layout:"accordion",
layoutConfig:{
animate:true
},
items:[{title:"子元素1",html:"这是子元素1的内容"},
{title:"子元素2",html:"这是子元素2的内容"},
{title:"子元素3",html:"这是子元素3的内容"},
]
});
});
items中最后一项
{title:"子元素3",html:"这是子元素3的内容"},
的逗号去掉就OK了
2.'render'为空或不是对象
此错误也是只在IE中出现在火狐中不出现,同样此错误也是因为多了逗号引起的,不过是多在button中而已:
Ext.onReady(function(){
new Ext.Panel({
renderTo:"hello",
tltie:"容器组件",
width:500,
height:200,
layout:"accordion",
layoutConfig:{
animate:true
},
items:[{title:"子元素1",html:"这是子元素1的内容"}
] ,
buttons : [
{text : "保存",
iconCls : 'saveIconCss',
handler :function(){
this.save;
},
scope : this},
{text : "关闭",
iconCls : 'closeIconCss',
handler :this.closeWin,
scope : this},
]
});
});
将buttons中的最后一项
{text : "关闭",
iconCls : 'closeIconCss',
handler :this.closeWin,
scope : this},
的逗号去掉就可以了
分享到:
相关推荐
HighLighting 导入 Highlighting ....将 Assets/Plugins/HighlightingSystem/Scripts/HighlightingRenderer 脚本添加到相机对象上 将 Assets/Plugins/HighlightingSystem/Scripts/Highlighter 脚本添加到游戏对象上
allowBlank : false, //是否允许为空 blankText : '不允许为空', labelAlign : 'left', //标签对齐方式 msgTarget :'qtip' //显示一个浮动的提示信息 //msgTarget :'title' //显示一个浏览器原始的浮动提示...
一款简单的jquery瀑布流特效,... function(index,render){//index为已加载次数,render为渲染接口函数,接受一个dom集合或jquery对象作为参数。通过ajax等异步方法得到的数据可以传入该接口进行渲染,如 render(elem)
render : "canvas", //设置渲染方式,有table和canvas text : '', //扫描二维码后自动跳向该链接 width : "300", //二维码的宽度 height : "300", //二维码的高度 background : "#ffffff", //二维码的后景色 ...
VOID Render(VOID); // 渲染 protected: VOID UpdateParticles(VOID); // 更新粒子 VOID UpdateEmitter(VOID); // 更新发射器 VOID UpdateAffector(VOID); // 更新影响器 protected: BOOL m_isPlaying; // ...
后处理的RenderFeature相关的C#文件
renderTo:'base',//被渲染的对象,渲染的对象必须是ID width:400, html:'<b>内容</b>><br/><a>test</a>', tbar:[ {text:'新增'},{text:'修改'},{text:'删除'}],//头部工具栏 tools:[{id:'save'},{id:'hlep'}],//...
A "hyper lightweight" LWJGL helper library that makes render code legible. Feather allows you to quickly create the User Interface you have in mind, without needing to know obscure OpenGL calls or ...
table.render({ id : 'table', type:'post', elem : '#table', url : url, where : {'Id' : $data.Id}, page:false, cols : [ [ //表头 ]] }) 最简单直接用ajax请求,确保url路径正确 $.ajax({ dataType:'...
腾讯地图api和layui结合实现的腾讯地图坐标拾取器 可回调选择结果 layui.config({ base: './' }).use(["addrHelper"], function() { const addrHelper = layui.addrHelper const layer = layui.layer // 打开坐标...
shadow: false, // Whether to render a shadow hwaccel: false, // Whether to use hardware acceleration className: 'spinner', // The CSS class to assign to the spinner zIndex: 2e9, // The z-index ...
网站开发资源 Web开发人员的有用资源... :high_voltage: http://render.com :high_voltage: GitLab页面 学习平台 :graduation_cap: http://freecodecamp.org :graduation_cap: http://codecademy.com :graduation_
该存储库包含社区为编写的UI扩展和自定义显示着色器。 请注意,根据设计,此处的代码直接由社区贡献,而不是由RenderDoc作者编写。 确保您信任扩展作者或验证代码没有做任何危险的事情,因为除非显而易见,否则代码...
bootchart ./bootchart.tgz 时error: Traceback (most recent call last): File "/usr/bin/bootchart", line 23, in <module> sys.exit(main()) ...版权声明:本文为博主原创文章,转载请附上博文链接!
使用vue的render函数实现组件之间动态嵌套功能。文章链接:https://blog.csdn.net/qq_35134375/article/details/109159574
资源分类:Python库 所属语言:Python 资源全名:render-python-2.2.2.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
Ext教程 Ext.onReady(function(){ // shorthand var Tree = Ext.tree; var tree = new Tree.TreePanel({ el:'tree-div', ... // render the tree tree.render(); tree.getRootNode().expand(); });
资源分类:Python库 所属语言:Python 资源全名:render-python-1.10.1.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
针对LineRender和TrailRender的Shader,可以支持修改和定制渲染的方式和颜色。 详细的使用说明可以参考我的博客: http://blog.csdn.net/andrewfan