当我运行我的应用程序时,文件上传功能显示错误
未捕获的类型错误:对象 [对象对象] 没有方法“文件上传”
$(document).ready(function(){
$('#datepicker').datepicker();
$('#fileupload').fileupload({
**Uncaught TypeError: Object [object Object] has no method 'fileupload'**
url: '/create_p',
add: function (e, data) {
$('#upload').append('<p class="upl">Uploading...please wait</p>');
data.submit();
},
success: function (r) {
$('#upload').remove();
//alert(r["id"]) ;
$('#id_p').attr('value',r["id"]);
}
});
});