首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Ajax >

extjs怎样做图片上传解决思路

2012-03-18 
extjs怎样做图片上传extjs怎样做图片上传,页面的那个点击浏览怎么做啊[解决办法]csdn长度有限制接上面JScr

extjs怎样做图片上传
extjs怎样做图片上传,页面的那个点击浏览怎么做啊

[解决办法]
csdn长度有限制

接上面

JScript code
    createToolbar : function(editor)     {        HTMLEditor.superclass.createToolbar.call(this, editor);        this.tb.insertButton(16,         {            cls : "x-btn-icon",            icon : "images/icos/addimage.gif",            handler : this.addImage,            tooltip :            {                 title:'AddImage',                text:'插入图片'            },            scope : this        });        this.tb.insertButton(17,         {            cls : "x-btn-icon",            icon : "images/icos/addfile.gif",            handler : this.addFile,            tooltip :            {                 title:'AddFile',                text:'插入xls、doc、rar文件'            },            scope : this        });                this.tb.insertButton(18,         {            cls : "x-btn-icon",            icon : "images/icos/comment_edit.gif",            handler : this.addCode,            tooltip :            {                 title:'AddCode',                text:'引用格式'            },            scope : this        });            }});Ext.reg('StarHtmleditor', HTMLEditor);//判断是否是图片类型function CheckFileExt(extstr,exg){    var extstr = extstr.substring(extstr.lastIndexOf(".")).toLowerCase();    if (!extstr.match(exg)) {        return false;    }    return true;} 

热点排行