Recently I have been working on nginx module configuration, etc., and then I came into contact with some type definition types
For example:
<code><span>image</span>/jpeg <span>image</span>/png <span>text</span>/plain <span>text</span>/javascript <span>text</span>/css; application/xml application/x-javascript</code>
It’s not very clear why different files need to be distinguished by different types, so I went to Baidu to find the general information:
Content -Type: used to define how the user's browser or related device displays the data to be loaded, or how to process the data to be loaded
MIME: MIME type is to set a file with a certain extension to be opened with an application Mode type, when the file with this extension is accessed, the browser will automatically use the specified application to open it. It is mostly used to specify some client-defined file names and some media file opening methods.
According to your own understanding, image is the picture type; and text belongs to the content written by the front end. The browser calls different parsers to process the file accordingly according to the different types defined below text/; and the types defined below application/ The application needs to be processed.
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });The above introduces the text/ image/ application/ type understanding, including Application and image content. I hope it will be helpful to friends who are interested in PHP tutorials.