问答详情
源自:3-4 实现todolist的删除功能

子组件不能拿到for的key属性值吗

子组件不能拿到for的key属性值吗

提问者:慕用4251726 2019-05-24 01:34

个回答

  • sunlightboy
    2019-05-25 15:57:30

    试过,拿不到


    [Vue warn]: "key" is a reserved attribute and cannot be used as component prop.


    found in


    ---> <TodoItem> at src/components/TodoItem.vue

           <TodoList> at src/TodoList.vue

             <Root>