在使用 splice( ) 删除数组最后一个元素的时候,发生 Cannot read properties of undefinde(reading 'name') 错误。name属性的前面的属性是一个undefined。
错误如下:
代码如下:
将数组中的数据渲染
Vue中的数据
处理函数
在使用 splice( ) 删除数组最后一个元素的时候,发生 Cannot read properties of undefinde(reading 'name') 错误。name属性的前面的属性是一个undefined。
错误如下:
代码如下:
将数组中的数据渲染
Vue中的数据
处理函数