$.ajax({ type: "post",url: "Default.aspx",dataType: "json",success: function (data) { $("input#showTime").val(data[0].demoData); },error: function (XMLHttpRequest,textStatus,errorThrown) { alert(errorThrown); } });原文链接:https://www.f2er.com/ajax/162624.html