$.widget('blueimp.fileupload') Uncaught TypeError: undefined is not a function


使用fileupload 遇到的问题:


    <!-- jquery.fileupload.js -->
    <script src="assets/js/jquery.fileupload.js"></script>
    <script src="assets/js/jquery.ui.widget.js"></script>
    <script src="assets/js/jquery.iframe-transport.js"></script>

改成这样就可以了,需要把jquery.ui.widget.js放到 jquery.fileupload.js文件前面就可以了

    <!-- jquery.fileupload.js -->
    <script src="assets/js/jquery.ui.widget.js"></script>
    <script src="assets/js/jquery.iframe-transport.js"></script>
    <script src="assets/js/jquery.fileupload.js"></script>

参考 http://blog.csdn.net/zhouyingge1104/article/details/38229365

另外 需要把jquery.js放到最前面,他是基础哦~


你可能感兴趣的:($.widget('blueimp.fileupload') Uncaught TypeError: undefined is not a function)