|
我需要自定义页面按钮去实现attachmentSimple的上传功能,我根据之前版主提示修改了system/justep/attachment/attachmentSimple.js中绑定的按钮
initUploader:function(){
var self = this;
var actionUrl = require.toUrl(this.actionUrl);
//self.uploader = new Uploader(self.$domNode.find('.x-item-upload'),{
self.uploader = new Uploader(self.$domNode.find('x-ant-upload'),{
actionUrl:actionUrl,
compress: this.compress
});
x-ant-upload是我自定义按钮组件的class名称,但是页面提示绑定事件出错,要如何修改?另一个思路,我不修改attachmentSimple.js,能否在页面按钮中直接引用attachmentSimple中的按钮x-item-upload,再调上传函数,请问如何实现? |
|