var text = '42px'; var integer = parseInt(text, 10); // returns 42. ... Javascript answers related to “react convert string to decimal”.
確定! 回上一頁