$.ajaxFileUpload
(
{
url:'/contents/ajaxfileupload/doajaxfileupload.php',
secureuri:false,
fileElementId:'fileToUpload',
dataType: 'json',
beforeSend:function()
{
$("#loading").show();
},
complete:function()
{
$("#loading").hide();
},
success: function (data, status)
{
if(typeof(data.error) != 'undefined')
{
if(data.error != '')
{
alert(data.error);
}else
{
alert(data.msg);
}
}
},
error: function (data, status, e)
{
alert(e);
}
}
)
jquery上传文件
最新推荐文章于 2024-11-02 16:30:36 发布