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

如何一次上传多个文件 #23

Open
houguiqiang opened this issue Dec 14, 2016 · 1 comment
Open

如何一次上传多个文件 #23

houguiqiang opened this issue Dec 14, 2016 · 1 comment

Comments

@houguiqiang
Copy link

$(_this._opt.imgTar).on('change', function(e) {
var files = e.target.files;
debugger;
for(var i =0;i<files.length;files){
// var file = e.target.files[0];
var file = files[i];
if(i==(files.length-1)){
//e.target.value = '';
}
// if(Math.ceil(file.size/1024/1024) > _this._opt.limitSize) {
// console.error('文件太大');
// return;
// }
var reader = new FileReader();
reader.readAsDataURL(file);
reader.onload = function (f) {
// if(_this._opt.showServer) {
// _this.upload(f.target.result);
// return ;
// }
console.log('>>>>>>>'+i);
var img = '';
// var img = '';
_this.insertImage(img);
};
}
});

这月改了貌似又不对

@siliushi
Copy link
Owner

目前没实现这个功能

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

2 participants