js 字符串数组转换为数组

如果我们js要处理以下的字符串如下:

"[{"name":"78oa","age":"8"},{"name":"78oa","age":"8"},{"name":"78oa","age":"8"}]"

这是个字符串,我们想把他转换为数组怎么做呢?


var arrstring = '[{"name":"78oa","age":"8"},{"name":"78oa","age":"8"},{"name":"78oa","age":"8"}]'

eval((arrstring));

78OA办公系统


无标签
分享到: