摘要: 1 function strToNum(a){ 2 let chars = a.split("").map(e => e.charCodeAt(0) - "0".charCodeAt(0)); 3 let n = 0; 4 5 for(var char of chars){ 6 n *= 10; 7 阅读全文
posted @ 2020-02-04 10:41 Nextfuture 阅读(304) 评论(0) 推荐(0)