Javascript 取消上传角度蒸发
我使用angular Escape将文件上传到Amazon Web服务(AWS)。 我需要在其中添加一个取消按钮。在expresse.js中已经有一个函数可用Javascript 取消上传角度蒸发,javascript,angularjs,amazon-web-services,evaporate.js,Javascript,Angularjs,Amazon Web Services,Evaporate.js,我使用angular Escape将文件上传到Amazon Web服务(AWS)。 我需要在其中添加一个取消按钮。在expresse.js中已经有一个函数可用 _.cancel = function(id){ l.d('cancel ', id); if (files[id]){ files[id].stop(); return true; } else { return false; } }; 但我不知道如何点击按
_.cancel = function(id){
l.d('cancel ', id);
if (files[id]){
files[id].stop();
return true;
} else {
return false;
}
};
但我不知道如何点击按钮进行校准。我是angulare js新手,请帮助我。这应该在最新的主分支()中完成,而不是在1.4.3中。要安装master,请运行
bower uninstall angular-evaporate
bower install angular-evaporate#master
您可以使用eva.add({
并将其更改为
file.id=eva.\uu.add({
一旦添加完成,proxy evalue.js方法
file.cancel = function(){
eva._.cancel(file.id);
};