08 2021 档案

摘要:在监听键盘事件时,我们经常需要检查详细的按键。Vue 允许为 v-on 在监听键盘事件时添加按键修饰符: 如果使用element组件 el-input 则:需要添加 native 你可以直接将 KeyboardEvent.key 暴露的任意有效按键名转换为 kebab-case 来作为修饰符。 在上 阅读全文
posted @ 2021-08-13 16:07 A木子 阅读(179) 评论(0) 推荐(0)
摘要:使用Vue网址:https://cn.vuejs.org/v2/guide/ 导入连接: 以下操作都需要在methods里操作: 添加新的数据: 使用 push 来添加 单删数据: 使用 splice 来删除 index(为当前的下标) 1:为删除的个数 修改元素: 搜索数据: 使用 indexOf 阅读全文
posted @ 2021-08-12 17:08 A木子 阅读(105) 评论(0) 推荐(0)