js,如何把数组格式的String转化为数组

2025-02-27 08:43:46
推荐回答(1个)
回答1:

var s = "111,222,333,444";
var arr = s.split(",");
//arr即是转化后的数组