What's default dataType of jquery's ajax and get methods?

后端 未结 2 1505
孤城傲影
孤城傲影 2021-01-28 14:26

I need to know the default value of dataType of $.ajax() and $.get()? It\'s json or html or others?

2条回答
  •  春和景丽
    2021-01-28 14:26

    If data type is not specified, jQuery will try to infer it based on the MIME type of the response

    dataType (default: Intelligent Guess (xml, json, script, or html))
    

提交回复
热议问题