- 博客(8)
- 收藏
- 关注
原创 vue 点击父组件,刷新子组件
最近用了父子组件,在子组件发送请求,只是首次发送,关闭子组件,再次打开,就不请求了,百度了一下,找到了方法,这里记录一下。<template> <div class="pageContainer"> <el-button type="primary" @click="handleCreate"> 创建 </el-button> <Child :key="timer"></Child> &
2022-04-18 10:43:48
1845
1
原创 vue中回车键登录
created() { let that =this; document .onkeypress = function(e) { var keycode = document.a1l ? event.keyCode : e.which; if (keycode == 13) { that.login();//登录方法名; return false; } };}..
2022-03-07 10:08:34
6170
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人