Javascript 如何使用`extjs中的两个依赖文件管理`textfield`的`maxLength``
如何在一个Javascript 如何使用`extjs中的两个依赖文件管理`textfield`的`maxLength``,javascript,extjs,Javascript,Extjs,如何在一个textfield中设置两个相关字段的maxLength get_input_field: function (target_field, name) { return ({ xtype: "textfield", name: name, width: 100, autoCreate: { tag: "input", maxLength: 10,
textfield
中设置两个相关字段的maxLength
get_input_field: function (target_field, name) {
return ({
xtype: "textfield",
name: name,
width: 100,
autoCreate: {
tag: "input",
maxLength: 10,
type: "text",
size: "20",
autoComplete: "off"
},
value: this[name],
listeners: this.get_listeners(target_field)
})
}
相关字段包括:
this.get_input_field("dependentField1", "upperValue")
this.get_input_field("dependentField2", "lowerValue")
请帮助我如何基于这两个字段修复maxLength
提前谢谢。你能再解释一下吗