just-react
just-react copied to clipboard
Update multi.md
向右移动这个概念有些笼统,在我第一次阅读的时候不明了向右移动几位,还是移动到头。多次模拟后才知道需要移动到lastPlacedIndex位置
其实最终执行的是 appendChild (移动到最右边), 我认为这里表述为:向右移动 可能不够清晰,表述为移动到最右边可能更准确。 lastPlacedIndex本身只是个参照物,表述为移动到lastPlacedIndex位置 可能有些误导。
其实最终执行的是
appendChild(移动到最右边), 我认为这里表述为:向右移动 可能不够清晰,表述为移动到最右边可能更准确。lastPlacedIndex本身只是个参照物,表述为移动到lastPlacedIndex位置 可能有些误导。
如果把案例换成 a b c d -> b a d c,每次比对不是移动到最右边 而是lastPlacedIndex位置
Placement effect 只会执行appendChild操作,没有办法移动到指定位置