为何在v-for中使用key

diff算法需要用到tag和key来判断是否是相同dom节点,会减少diff算法循环次数,优化渲染性能

results matching ""

    No results matching ""