Home > Backend Development > PHP Tutorial > text/ image/ application/ 类型理解 application loader application json application manage

text/ image/ application/ 类型理解 application loader application json application manage

WBOY
Release: 2016-07-29 08:54:56
Original
2064 people have browsed it

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>
Copy after login

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template