response.setContentType()的String参数及对应类型
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了response.setContentType()的String参数及对应类型相关的知识,希望对你有一定的参考价值。
response.setContentType("image/bmp"); BMP
response.setContentType("image/gif"); GIF
response.setContentType("image/jpeg"); JPEG
response.setContentType("image/tiff"); TIFF
response.setContentType("image/x-dcx"); DCX
response.setContentType("image/x-pcx"); PCX
response.setContentType("text/html"); HTML
response.setContentType("text/plain"); TXT
response.setContentType("text/xml"); XML
response.setContentType("image/bmp"); BMP
response.setContentType("application/afp"); AFP
response.setContentType("application/pdf"); PDF
response.setContentType("application/rtf"); RTF
response.setContentType("application/msword"); MSWORD
response.setContentType("application/vnd.ms-excel"); EXCEL
以上是关于response.setContentType()的String参数及对应类型的主要内容,如果未能解决你的问题,请参考以下文章
response.setContentType()的String参数及对应类型
response.setContentType()的作用及参数
response.setContentType与 request.setCharacterEncoding 区别