DataType and server setContentType in ajax

Are the dataType and server setContentType, in

ajax repeated? why does the server sometimes report an error when text/plain,dataType is set to "json"?

I read the Internet and said:

1. Server does not return response content-type:application/json, frontend dataType specifies json, to decode http response content. Data type is Object

2. Server returns response content-type:application/json, frontend dataType does not specify json, to decode http response content, data type is Object

, first ask what decoding http means, isn"t json a data type, and decoding is something like iso-8859-1 fufmi 8 and so on? how can it be linked together? Then why can both of them be decoded and returned to Object,? is it possible that dataType and the server can just set one, and the two functions are the same?

Mar.22,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e55c6a-4535d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e55c6a-4535d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?