更新时间:2023-12-06 08:12:34
(' #btn')。click(function(){
('#btn').click(function () {
.ajaxFileUpload({
type:' POST',
contentType: application / json; charset = utf-8,
url:' Handlers / UploadFile.ashx',
secureuri: false ,
dataType:' text',
contentType: text / html,
data:{
.ajaxFileUpload({ type: 'POST', contentType: "application/json; charset=utf-8", url: 'Handlers/UploadFile.ashx', secureuri: false, dataType: 'text', contentType: "text/html", data: {
(' #aid')。val()},
success:function(data,status){
if (data.length > 0 ){
alert(data);
}
其他 {
}
},
错误:函数(数据,状态,e){
if (err.statusText.length > 0 ){
alert(err.statusText);
}
}
});
}
}
('#aid').val() }, success: function (data, status) { if (data.length > 0) { alert(data); } else { } }, error: function (data, status, e) { if (err.statusText.length > 0) { alert(err.statusText); } } }); } }