Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update multi.md #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update multi.md #90

wants to merge 1 commit into from

Conversation

yl617341586
Copy link

向右移动这个概念有些笼统,在我第一次阅读的时候不明了向右移动几位,还是移动到头。多次模拟后才知道需要移动到lastPlacedIndex位置

向右移动这个概念有些笼统,在我第一次阅读的时候不明了向右移动几位,还是移动到头。多次模拟后才知道需要移动到lastPlacedIndex位置
@BetaSu
Copy link
Owner

BetaSu commented Jul 9, 2021

其实最终执行的是 appendChild (移动到最右边), 我认为这里表述为:向右移动 可能不够清晰,表述为移动到最右边可能更准确。 lastPlacedIndex本身只是个参照物,表述为移动到lastPlacedIndex位置 可能有些误导。

@yl617341586
Copy link
Author

其实最终执行的是 appendChild (移动到最右边), 我认为这里表述为:向右移动 可能不够清晰,表述为移动到最右边可能更准确。 lastPlacedIndex本身只是个参照物,表述为移动到lastPlacedIndex位置 可能有些误导。

如果把案例换成 a b c d -> b a d c,每次比对不是移动到最右边 而是lastPlacedIndex位置

@BetaSu
Copy link
Owner

BetaSu commented Jul 9, 2021

Placement effect 只会执行appendChild操作,没有办法移动到指定位置

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants