Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools:图片上传组件 uploadImg.js #48

Open
mishe opened this issue Dec 9, 2015 · 0 comments
Open

tools:图片上传组件 uploadImg.js #48

mishe opened this issue Dec 9, 2015 · 0 comments

Comments

@mishe
Copy link
Owner

mishe commented Dec 9, 2015

支持移动端上传,基于jquery,使用范例:

$('.add_photo_btn').Mobile_upload({
      multiple:true, //多图上传
      ajax:{
          url:st.cfg.upload,   //ajax上传的接口地址
          loading:this.$el.find('.loading')  //相关的loading显示
      },
      max:9, //最大单次选中文件
      maxFileSize:9*1024*1024,  //最大文件尺寸
      callback:function(result,name,postName){  //上传成功后的回调
      }
});
@mishe mishe changed the title 图片上传组件 uploadImg.js tools:图片上传组件 uploadImg.js Dec 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant