是HTML表单的application / x-www-form-urlencoded默认值? [英] is application/x-www-form-urlencoded default for html form?

查看:208
本文介绍了是HTML表单的application / x-www-form-urlencoded默认值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现HTML表单只支持两种enctype类型。它们是 application / x-www-form-urlencoded multipart / form-data 。我知道当我需要上传文件时,我使用 multipart / form-data 。我何时使用 application / x-www-form-urlencoded ?它是默认的形式enctype?

I found out that HTML form supports only two enctype types. They are application/x-www-form-urlencoded and multipart/form-data. I understand that I use multipart/form-data when I need to upload a file. When do I use application/x-www-form-urlencoded? Is it default form enctype?

推荐答案

是的。以下是 W3 HTML表单规范中的一个引用:

Yes, it is. Here's a cite from the W3 HTML forms specification:


此属性的默认值为application / x-www-form-urlencoded。值multipart / form-data应与 INPUT 元素, type =file

网页浏览器会关注 URL编码

这篇关于是HTML表单的application / x-www-form-urlencoded默认值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆