可以使用 parseIntparseFloat 后缀模板将字符串转换为数字。

此外,如果要处理由模板生成的 err 值,请考虑使用 nn 后缀模板。

Postfix templates: string-to-number conversion