按栏目快速找到需要的在线工具。
JSON 解析、格式化、压缩、对比与实体生成。
Base64、URL、进制、哈希与 AES 加密工具。
DNS、SEO、HTTP、robots 与站点检查。
日期、计算器、健康与便民工具。
前端、编程、数据库与服务器教程。
11 个工具栏目,按使用场景分类。
日期:2014-05-16 浏览次数:20762 次
extjs中的fileuploadfield出现两个按钮,由于没有导入ext/3.0.0/examples/ux/FileUploadField.js样式
/** * @author edwin * @date 2011-1-30 * @desc 上传窗体 */ uploadWin = Ext.extend(Ext.Window,{ id: 'upLoad', uploadPanel: null, constructor: function(){ this.uploadPanel = new Ext.form.FormPanel({ fileUpload: true,//允许上传 baseCls: 'x-plain',//作用在面板元素上的CSS样式类 (默认为 'x-panel') layout: 'form', labelWidth: 60, items: [{ xtype: 'fileuploadfield',//引入插件 fieldLabel: '上传照片', allowBlank: false, id: 'photo', buttonText: '选择' }] }); //调用父类构造方法 uploadWin.superclass.constructor.call(this,{ title: '上传照片', modal: true, width: 380, height: 150, plain: true, items:[this.uploadPanel], buttonAlign: 'center', buttons:[{ text: '确定' },{ text: '取消' }] }) } })