1 var s = "123"; 2 console.log(s.charAt(0)*100+s.charAt(1)*10+s.charAt(2)*1); 相关文章: 2021-12-06 2021-05-22 2022-12-23 2021-11-05