成功:函数(数据){ $(#lblMessage)。empty(); }, 错误:函数(xhr,状态,错误){ alert(xhr.responseText); } }); 错误: Hi,This is my code. when i try to download pdf report i am getting the following error.Anyone please help me.Thanks in advance code: $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: ServiceUri + "LoadOnTimeReport", data: '{"LocationId":"' + $("#cmbLocation option:selected").val() + '","Location":"' + $("#cmbLocation option:selected").text() + '","statuschangeddatefrom":"' + $("#txtStatusChangeFromDate").val() + '","statuschangedateto":"' + $("#txtStatusChangeToDate").val() + '","exportType":"' + exportType + '"}', dataType: "json", success: function (data) { $("#lblMessage").empty(); }, error: function (xhr, status, error) { alert(xhr.responseText); } });error:%PDF-1.3%??1 0 obj<</Type /Outlines/Count 0>>endobj2 0 obj[/PDF /Text /ImageC]endobj3 0 obj<</Type /Pages/Count 1/Kids [10 0 R ]>>endobj4 0 obj<</Type /Font/Subtype /TrueType/Name /F1/BaseFont /Arial,Bold/FirstChar 32/LastChar 255/Widths [ 推荐答案 .ajax({ 类型:POST, contentType:application / json; charset = utf-8, url:ServiceUri +LoadOnTimeReport, data:'{LocationId:'+ .ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: ServiceUri + "LoadOnTimeReport", data: '{"LocationId":"' + (#cmbLocation option:selected)。val()+',Location:'+ ("#cmbLocation option:selected").val() + '","Location":"' + (#cmbLocation option:selected)。text()+ ',statuschangeddatefrom:'+ ("#cmbLocation option:selected").text() + '","statuschangeddatefrom":"' + 这篇关于使用jquery ajax json在grapecity活动报告中的pdf下载错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 11-02 19:30