类库说明文档
![]() | JHRequestGetFormDataTtype Method (String) |
获取 HTTP 查询字符串变量集合中指定键的值,已去除首尾空格,如果异常或获取为 null,则返回当前类型的默认值 default(Ttype)
Namespace: DCSoft.Utility.Web
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)

C#
public static Ttype GetFormData<Ttype>( string name ) where Ttype : IConvertible
Parameters
- name
- Type: SystemString
要获取的键名称
Type Parameters
- Ttype
- 要返回的数据类型,如 int, string, DateTime 等
Return Value
Type: Ttype返回指定键的值
