首页 > 技术文章 > js字符串数组['1','2','3']转number
lanshu123 2019-07-01 15:51 原文
let arr = ['1','2','3']; arr.split(',').map(Number);