Skip to content

toUpperCase ​

把字符串转换为大写。结果写入 data。

签名 ​

ts
function toUpperCase(): Action<string>

示例 ​

优惠码 ​

ts
pipe(string(), trim(), toUpperCase(), pattern(/^[A-Z0-9]{6,10}$/))

另请参阅 ​