there is a problem with learning ajax. You need to set up
before sending ajax in post mode.ajax.setRequestHeader("content-type","application/x-www-form- urlencoded");
but I heard that the second parameter also has "multipart/form-data"
, "text/plain"
these values;
what do these values mean?
what type of data can be transferred in post mode? Does it have an impact on different values? Is there any other value for
?
look up the information everywhere but can"t find it, find the answer