vue项目:
发送数据:
handleEdit(index, row) {
let id=row.id;
this.user = row;
this.$router.push(`updatestu?id=${id}`);
},
接收数据:
created() {
console.log("id: ", this.$route.query.id);
},
html项目:
发送数据:
localStorage.setItem('key','value');
接收数据:
localStorage.getItem('key');