gpt4 book ai didi

extjs - 在 ExtJS 中覆盖类/属性的最佳实践?

转载 作者:行者123 更新时间:2023-12-03 08:52:03 24 4
gpt4 key购买 nike

我有一个 Ext.form.field.Text我想覆盖 setValue功能。

在 ExtJS 中覆盖此类功能的推荐方法是什么? Ext.override ?

最佳答案

这是在 ExtJS 7 中对我有用的唯一方法。
例子:
应用程序/桌面/覆盖/Toast.js

Ext.define(null, {
override: 'Ext.window.Toast',
show : function () {
this.callParent();
// Your custom code here...
}
});

关于extjs - 在 ExtJS 中覆盖类/属性的最佳实践?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14254321/

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