大多数情况下,当我多次单击同一个按钮时(两次或多次调用同一函数时),我会看到以下警告
[WARN] [WARN][Ext.Component#constructor] Registering a component with a id (`name`) which has already been used. Please ensure the existing component has been destroyed (`Ext.Component#destroy()`.
destroy
正如警告所建议的那样,我应该如何处理?或者我应该如何解决这个问题?
更新
function onPersonFound(imageData) {
var image = Ext.create('Ext.Img', {
src: "data:image/jpeg;base64," + imageData,
id: 'logo',
width: 372,
height: 140
});