你们如何利用Javascript /jQuery将一个 separated子分离的清单转换成json?
e.g.
Convert the following:
var names = "Mark,Matthew,Luke,John,";
页: 1
var jsonified = {
names: [
{name: "Mark"},
{name: "Mattew"},
{name: "Luke"},
{name: "John"}
]
};