... RegularExpressionAttribute 表达式验证 RequiredAttribute 必填验证 StringLengthAttribute 长度验证 ...
基于18个网页-相关网页
与字符串相关的一些典型的检查,会验证空字符串的长度是否为 0,访问范围超出索引是否导致错误消息或异常,等等。
Some of the typical string-related checks would validate whether an empty string has 0 length, accessing out-of-index results in an error message or exception, and so on.
字符串数据长度的变化或数值型数据精度和等级的变化也表明在数据的表示、验证和使用上存在潜在的问题。
Variations in length for string data or in precision and scale for numeric data also point to potential issues in data presentation, validation, and usage.
使用该方法验证的关键在于将更新过的索引和初始输入字符串的长度进行比较。
The key to using the method for validation is to compare the updated index to the length of the original input string.
应用推荐