Extjs onFilefieldChange事件代码:
</pre><pre name="code" class="javascript"> onFilefieldChange: function(filefield, value, eOpts) {
console.dir(filefield);
if(value !== null && <span style="color:#ff0000;">filefield.regex.test(value))</span>{
alert(value);
}
}
本文介绍 ExtJS 中 FileField 控件的 onFilefieldChange 事件使用方法,包括如何验证文件名是否符合预设正则表达式并展示具体实现代码。
1500

被折叠的 条评论
为什么被折叠?



