Javascript adding numbers as strings

前端 未结 4 815
深忆病人
深忆病人 2020-12-22 10:57

I have the following code which interprets the numbers as strings and adds them like 100300 instead of 400:

var rate = document.getElementById(\'pur_price\')         


        
4条回答
提交回复
热议问题