vue的编辑
时间:2021-09-17 15:32:48
收藏:0
阅读:25
对于编辑,在VS Code中有两种方式
一、传id
- 使用this.$router.push(传地址+id)
- 使用this.$route.params.id来接收
二、传一整行
- 使用this.$router.push({path:传路径,query:传一个对象})
- 使用this.$route.query来接收
这就是基本的编辑传值
随后给给个框双向绑定即可
原文:https://www.cnblogs.com/li0536/p/15302439.html
评论(0)