Difference Between $.getJSON() and $.ajax() in jQuery

后端 未结 7 2301
星月不相逢
星月不相逢 2020-11-27 11:48

I am calling an ASP.NET MVC action

public JsonResult GetPatient(string patientID)
{
...

from JavaScript using jQuery. The following call wo

相关标签:
7条回答
  • 2020-11-27 12:44

    with $.getJSON()) there is no any error callback only you can track succeed callback and there no standard setting supported like beforeSend, statusCode, mimeType etc, if you want it use $.ajax().

    0 讨论(0)
提交回复
热议问题