3,479
个编辑
第24行: | 第24行: | ||
const items = new vis.DataSet(itemsArray.map(function(item, index) { | const items = new vis.DataSet(itemsArray.map(function(item, index) { | ||
const parts = item.split(","); | const parts = item.split(","); | ||
const start = parts[0].trim(); | |||
const | const content = parts[1].trim(); | ||
return { id: index + 1, start: start | return { id: index + 1, content: content, start: start }; | ||
})); | })); | ||