gpt4 book ai didi

sencha-touch-2 - sencha touch 2 应用程序的警告消息

转载 作者:行者123 更新时间:2023-12-02 05:43:47 25 4
gpt4 key购买 nike

我已经定义了一个名为 header 的容器,并在每个页面上都将其用作标题,但我收到以下警告消息。

"[Ext.Component#constructor] Registering a component with a id (header) which has already been used. Please ensure the existing component has been destroyed (Ext.Component#destroy()."

需要帮助的人。提前致谢。

最佳答案

不使用 id 属性,如果您使用 itemId 就安全了

Ext.create('Ext.Component',{itemId: 'header'});

否则,在实例化具有相同 ID 的新组件之前,您需要destroy() 已经实例化的组件。

关于sencha-touch-2 - sencha touch 2 应用程序的警告消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10562094/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com