# vue表格中动态更新，动态删除，动态添加

### 动态添加

```css
// 请求成功后，返回添加的数据
this.tableData.push(response)
```

### 动态编辑

```css
// 表数据， 索引， 修改返回的数据
this.$set(this.tableData, index, response)
```

### 动态删除

```css
// 索引， 1
this.tableData.splice(index, 1)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://close.gitbook.io/yun-wei-bi-ji/centos/vue/vue-biao-ge-zhong-dong-tai-geng-xin-dong-tai-shan-chu-dong-tai-tian-jia.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
