来自 AngularJs 指令的用于 Dropzone.js 的调用函数 [英] Call function from AngularJs Directive for Dropzone.js
本文介绍了来自 AngularJs 指令的用于 Dropzone.js 的调用函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有针对 dropzone.js 脚本的指令:GitHub
I've this directive for the dropzone.js script: GitHub
这很好用,但我想用一个按钮调用函数 processQueue().但是我找不到如何调用这个函数!
This works fine but I want call the function processQueue() with a button. But I can't find how I can call this function!
推荐答案
我自己找到了答案,只需在指令末尾添加这一行:
I found the answer by myself, juste add this line in the end of the directive :
scope.dropzone = dropzone;
接下来你可以像这样调用函数:
And next you can call the function like that :
$scope.dropzone.processQueue();
这篇关于来自 AngularJs 指令的用于 Dropzone.js 的调用函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文