1
我有这个代码来检查表单是否已经存在。但它给出了一个错误。ExtJs getCmp失败
onRender : function() {
var cmp = Ext.getCmp('myForm');
if (cmp) {
alert("Component of this type already exist");
return;
}
错误来自于ExtJs核心。在调试器中,它在调用Ext.getCmp()
;
什么是错误?它是在js控制台中,还是由“给出一个错误”,你的意思是if(cmp)的计算结果为true? – Dave 2011-02-07 19:57:36
什么错误????? – Mchl 2011-02-07 19:57:51