更新时间:2023-12-05 12:45:46
您正在使用的技术是完全替换 observableArray
中的数据的推荐方法。 observableArray
实际上只是一个普通的 observable
,为有用的数组操作添加了额外的函数,这些操作作用于底层数组并触发通知。
The technique that you are using is the recommended approach for completely replacing the data in an observableArray
. An observableArray
is actually just a normal observable
with extra functions added for useful array operations that act on the underlying array and trigger notifications.