js字符串数组['1','2','3']转number

let arr = ['1','2','3'];
arr.split(',').map(Number);

 

posted @ 2019-07-01 15:51  空瓶子装满了  阅读(3811)  评论(0编辑  收藏  举报