移除字符串前的'0'方法调整
parent
9fb25f5966
commit
c86f213615
@ -1,3 +1,3 @@
|
||||
export function removeLeadingZeros(str: string): string {
|
||||
return String(Number(str));
|
||||
return str.replace(/^0+/, '');
|
||||
}
|
||||
|
Loading…
Reference in New Issue