Maquette 的 createMapping() 参数的 updateTarget 函数中发生了什么?

What goes in the updateTarget function of the createMapping() argument with Maquette?

我有一个数组每秒更新一次,我正在浏览映射数组的高级部分,但无法完成任务。我对 updateTarget(updatedSource, target) {} 函数中的内容感到困惑。评论和代码笔就此结束,dom 中什么也没有显示。该函数显然正在被调用,但我不知道如何使用新源更新目标。

updateTarget参数的签名和典型实现如下:

function updateResult(itemRecord, itemComponent, index) {
  itemComponent.setItemRecord(itemRecord);
}

我已经创建了 createMapping 的完整演示 here