如何判断是否为数字字符串 是派蒙 2026-01-21 7 阅读1分钟 function isNumericString(str: any) { return /^[-+]?(\d+\.?\d*|\.\d+)([eE][-+]?\d+)?$/.test(str); }