Use split(',') and press ',' to divide it into multiple arrays and judge based on the length. For example, a is 21000 and b is 11000. If there are more commas, it is judged based on the length. If the length is 3, the subscript is When 0 is 10001000, consider the Math.pow(10,n * 3) method and convert it into numbers for subtraction. You can try it
Use split(',') and press ',' to divide it into multiple arrays and judge based on the length. For example, a is 21000 and b is 11000. If there are more commas, it is judged based on the length. If the length is 3, the subscript is When 0 is 10001000, consider the Math.pow(10,n * 3) method and convert it into numbers for subtraction. You can try it