我正在尝试集成 django-jquery-fileupload
https://github.com/sigurdga/django-jquery-file-upload
但是当我单击“开始”上传按钮时,我收到“Error SyntaxError: Unexpected token <”。
我不明白是什么造成了错误。
这是我的代码:http://pastebin.com/nhZHnEaV
最佳答案
尝试使用 Chrome 调试器或同类工具之一,并检查加载脚本时发生的情况。当模板被渲染和发送以代替某些资源并被解释为 js 时,有时会发生这种情况。
关于javascript - 获取错误 SyntaxError : Unexpected token < django-jquery-fileupload,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20187219/