0
我有一個加載對話的應用程序。每次加載會話時,我都需要銷燬並重新啓動文件上傳器。檢測插件是否已被應用
每頁:https://github.com/blueimp/jQuery-File-Upload/wiki/API
我想:
// First destroy existing instance
$('.upload').fileUpload('destroy');
// Init
$('.upload').fileUploadUI({
........
問題是第一次運行我得到一個錯誤: 「未捕獲沒有文件上傳與命名空間 」「 分配給該元素」
file_upload關於如何以某種方式檢測插件是否已被應用並且只能銷燬的任何想法? Thansk