我尝试使用基本示例(源)进行jquery-file-upload,我包含在html中的文件是:
jquery.js
bootstrap.css
bootstrap.js
jquery.fileupload.css
jquery.iframe-transport.js
jquery.fileupload.js
我应该包括什么来正确使用jquery-file-upload
吗?
我的应用不需要使用 jquery-ui
。如果jquery-ui
真的是jquery-file-upload
的依赖项,是否有任何解决方法可以在没有jquery-ui
的情况下使用它?
没
关系,我应该先读这个。只需要jquery-ui.widget.js
,而不是整个jquery-ui
。
<script src="js/vendor/jquery.ui.widget.js"></script>
<script src="js/jquery.iframe-transport.js"></script>
<script src="js/jquery.fileupload.js"></script>
加载也很重要。
jquery.js
jquery.ui.widget.js
jquery.iframe-transport.js
jquery.fileupload.js
最后
$('#input').fileupload() // and U is lower case !!!!