js 字符串“123”,变成整数123,不用parseInt 函数时间:2023-03-09 08:36:51 var s = "123"; console.log(s.charAt(0)*100+s.charAt(1)*10+s.charAt(2)*1);