vue 第一天学习
vue 组 件的点击事件
@click.native.prevent="handleLogin" 看到 click.native.prevent 这个很奇怪,上网查到
给vue组件绑定事件时候,必须加上native ,不然不会生效(监听根元素的原生事件,使用 .native 修饰符)
意思就是 vue组件绑定事件,必须加上native ,没有就不生效 监听根元素的原生事件,使用 .native 修饰符路由跳转
this.$router.push({ path: "/bind" })
弹出框
this.$message.error("登录名或者登录密码不正确,无法登录");
this.$message("登录成功")
本作品采用《CC 协议》,转载必须注明作者和本文链接
推荐文章: