【问题标题】:Why is jquery.fileupload-validate raising $.blueimp.fileupload.prototype.options.processQueue.push error?为什么 jquery.fileupload-validate 会引发 $.blueimp.fileupload.prototype.options.processQueue.push 错误?
【发布时间】:2017-09-24 04:09:41
【问题描述】:

我在页面上使用jquery file upload,浏览器控制台中出现以下错误。

TypeError: undefined is not an object (evaluating '$.blueimp.fileupload.prototype.options.processQueue.push')

它似乎来自 jquery.fileupload-validate。

我无法找到有关此错误的更多信息。从以前的经验来看,jquery 文件上传似乎对加载模块的顺序非常敏感,但我再次无法找到关于此的文档的太多内容。

有没有其他人遇到过这个错误,或者可以解释一下加载顺序或其他可能的原因?

顺便说一句,我目前正在按以下顺序加载文件(虽然尝试过其他人但没有成功)

jquery.fileupload
jquery.fileupload-ui
jquery.fileupload-validate
jquery.fileupload-process
jquery.fileupload-image
jquery.iframe-transport

【问题讨论】:

    标签: jquery-file-upload


    【解决方案1】:

    试试这个顺序:

    js/jquery-3.3.1.js
    js/jquery.ui.widget.js
    js/jquery.iframe-transport.js
    js/jquery.fileupload.js
    js/jquery.fileupload-process.js
    js/jquery.fileupload-image.js
    js/jquery.fileupload-validate.js
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-12-09
      • 2015-09-02
      • 2011-01-19
      • 2014-12-11
      • 1970-01-01
      • 2013-05-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多