VUEJS remove Element From Lists?

后端 未结 5 2108
渐次进展
渐次进展 2021-01-31 02:36

it is possible to remove specific element from lists. i tried this functions for remove element

pop() = remove last element

$remove(index) = n

5条回答
  •  臣服心动
    2021-01-31 03:04

    Firstly, you should fix the methods key.

    Then, you should pass the item to the $remove method, not the index. [ref]

    https://jsfiddle.net/790og9w6/

提交回复
热议问题