Javascript未捕获类型错误未定义不是函数
我正在尝试在我的网站上添加视频文件上载功能: 我遵循此处发布的示例: 我已经在我的MVC项目中包括了所有必要的库。。在我看来,我包括以下标题:Javascript未捕获类型错误未定义不是函数,javascript,asp.net-mvc,Javascript,Asp.net Mvc,我正在尝试在我的网站上添加视频文件上载功能: 我遵循此处发布的示例: 我已经在我的MVC项目中包括了所有必要的库。。在我看来,我包括以下标题: <head> <title>Videos </title><!-- Bootstrap core CSS --> <link href="~/Scripts/jquery-lib/jquery.fileupload.css" rel="stylesheet" />
<head>
<title>Videos </title><!-- Bootstrap core CSS -->
<link href="~/Scripts/jquery-lib/jquery.fileupload.css" rel="stylesheet" />
<script src="/Scripts/jquery-lib/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="/Scripts/jquery-lib/jquery.ui.widget.js" type="text/javascript"></script>
<script src="/Scripts/jquery-lib/bootstrap.min.js" type="text/javascript"></script>
<script src="/Scripts/jquery-lib/jquery.fileupload.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#fileupload').fileupload({
dataType: 'json',
url: '/Videos/UploadVideoFile/?isrc=' + 'HGTGHTGTYTGT',
autoUpload: true,
done: function (e, data) {
$('.file_name').html(data.result.name);
$('.file_type').html(data.result.type);
$('.file_size').html(data.result.size);
}
}).on('fileuploadprogressall', function (e, data) {
var progress = parseInt(data.loaded / data.total * 100, 10);
$('.progress .progress-bar').css('width', progress + '%');
});
});
</script>
</head>
似乎没有加载jQuery。打开浏览器的调试器(F-12)并查看“网络”选项卡。重新加载页面并查找404错误。您可能走错了路径。什么是
jquery.ui.widget.js
。我不使用jquery.ui
,但我假设这只是依赖于jquery.ui
的其他部分的子集。尝试只加载jquery.ui.js
或首先包括jquery.ui.core.js
Uncaught TypeError: undefined is not a function add:96
Uncaught ReferenceError: jQuery is not defined jquery.ui.widget.js:18
Uncaught ReferenceError: jQuery is not defined bootstrap.min.js:6
Uncaught TypeError: Cannot read property 'support' of undefined jquery.fileupload.js:32
Uncaught ReferenceError: $ is not defined add:95
Uncaught TypeError: Cannot read property 'support' of undefined jquery.fileupload.js:32
Uncaught ReferenceError: $ is not defined