form 表单的 enctype 属性

说明

enctype 属性作用:指定对数据编码的方式,然后发送到服务器

enctype 有以下几种类型:

  • application/x-www-form-urlencoded:编码所有字符,表单的默认方式,默认值

  • multipart/form-data :不对字符编码。在 上传文件 时,必须使用该值

  • text/plain:空格转换为 + 符号,但不对特殊字符编码。很少使用


原文出处:/show_1IX34NmSu7BZ.html