当我单击同一个按钮超过 1 次时,我收到此错误。这意味着什么,我应该怎么做才能防止它;
[WARN] [WARN][Ext.Component#constructor] Registering a component with a id (`form1`) which has already been used. Please ensure the existing component has been destroyed (`Ext.Component#destroy()`.
2012-05-08 21:29:56.869 ProjectSeal[870:fb03] [WARN] [WARN][Ext.Component#constructor] Registering a component with a id (`new-note-btn1`) which has already been used. Please ensure the existing component has been destroyed (`Ext.Component#destroy()`.
根据错误/警告,我destroy
该如何组件?
更新
Ext.define('app.view.Contact',{
extend:'Ext.form.Panel',
xtype:'contactform',
id: 'form1',
....
我如何让 Sencha 将 id 添加到我的代码中?
更新
[WARN] [DEPRECATE][Anonymous] itemId 被直接作为组件上的属性弃用。请将其放在配置对象中,并使用“this.config.itemId”检索它