Home > Article > Web Front-end > Use parseInt for data type conversion during js numerical calculation (jquery)_javascript skills
The data obtained by js is of string type by default. If you perform numerical operations, you must use parseInt to convert into numerical values.
html code:
js code:
});