我想以以下格式创建一个 JavaScript 数组:
var datas = [
{ name: "Peter Pan", location: "peter@pan.de" },
{ name: "Molly", location: "molly@yahoo.com" },
{ name: "Forneria Marconi", location: "live@japan.jp" },
{ name: "Master <em>Sync</em>", location: "205bw@samsung.com" }
];
因为我想动态创建它,如果我能创建一个这样的数组会很棒。