ContentType refers to the mime content type, which determines the type of content installed on the server. This can indicate FORM-encoded, XML, JSON, and many other types of content. This helps the server determine how to handle the content.
dataType helps jQuery regarding how to handle data. if you specify json, then the returned data will be evaluated as json, and the data passed to the success handler will be an object instead of a string
The data property is used for data transferred to the server. If you pass an object literal. JQuery will pass it either as part of the request body (if it is a message type), or as part of a query string (if get type)
Rune fs
source share