在Javascript中,可以使用以下步骤将多个JSON对象数组传递给模拟软报表:
var dataset1 = [
{ name: "John", age: 25, city: "New York" },
{ name: "Alice", age: 30, city: "San Francisco" },
{ name: "Bob", age: 35, city: "Seattle" }
];
var dataset2 = [
{ name: "Tom", age: 28, city: "Chicago" },
{ name: "Emily", age: 32, city: "Los Angeles" },
{ name: "Mike", age: 40, city: "Boston" }
];
var datasets = [dataset1, dataset2];
领取专属 10元无门槛券
手把手带您无忧上云