我有一个每秒更新一次的数组,我正在浏览带有映射数组的高级部分,但无法完成任务。我对 updateTarget(updatedSource, target) {}
函数内部的内容感到困惑。注释和代码笔就此结束,dom 中什么也没有显示。该函数显然已被调用,但我不知道如何使用新源更新目标。
最佳答案
updateTarget参数的签名和典型实现如下:
function updateResult(itemRecord, itemComponent, index) {
itemComponent.setItemRecord(itemRecord);
}
我已经创建了 createMapping 的完整演示 here .
关于javascript - Maquette 的 createMapping() 参数的 updateTarget 函数中发生了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34959276/