Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获取文件上传字段的按钮 ID?我试过了。Ext.getCmp('idFileupload1').buttonEl.id 但它没有用。
我不知道您为什么会需要它,但方法如下:
Ext.select('.x-form-file-btn button').elements[0].id
在浏览器中打开它,在Chrome中右键->“检查元素”,在firefox等中也是如此。