JS中将数组字符串转换为数组

字符串str

[826,34,36,33,32,32,706,31,572,30,706,198,566,482,535,215,387,32,725,32,708,32,293,263,868,31,1188,286,95,32,1128,42,31,33,32,45,687,31,31,36,675,31,841,33,1517,37,33,32,727,32,36,33,36,34,43,53,970,31,33,33,30,32,33,31,32,31,708,33,46,32,32,36,37,32,33,33,39,31,37,32,405,38,33]

执行

 eval ("(" + str+ ")")

 得到数组

猜你喜欢

转载自blog.csdn.net/u013310119/article/details/88909645