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

后端 未结 7 2462
星月不相逢
星月不相逢 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:34

    contentType: 'application/json; charset=utf-8'
    

    Is not good. At least it doesnt work for me. The other syntax is ok. The parameter you supply is in the right format.

提交回复
热议问题