POST和GET HTML表单方法的数据类型限制是什么? [英] What are the data type limitations of the POST and GET HTML Form Methods?
本文介绍了POST和GET HTML表单方法的数据类型限制是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
POST和GET HTML表单方法的数据类型限制是什么?您是否仅限于传递特定的数据类型,例如 - 字符串,整数,浮点数。
What are the data type limitations of the POST and GET HTML Form Methods? Are you limited to passing only specific data types like--strings, integers, floats.
推荐答案
POST和GET都将字符串提交给服务器。确定如何解析数据取决于您的程序。大多数框架为您提供了支持最原始数据类型的基础。在ASP.NET MVC的情况下,它可以绑定到大多数对象。
POST and GET both submit strings to the server. It is up to your program to determine how to parse that data. Most frameworks give you a basis to do this already that support most primitive datatypes. In the case of ASP.NET MVC, it can bind to most objects.
这篇关于POST和GET HTML表单方法的数据类型限制是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文