- 博客(3)
- 收藏
- 关注
原创 用户登录切换,输入框会保留原来输入的值的解决办法(vue)
1.在用户不点击输入框,只点击输入框旁边的文字,可以用 label的for属性和 input的id属性进行配合2.用户在输入框输入账号密码时,发现登录方式不对,想切换登录方式,这时候,有可能不需要保留原来输入的值<span v-if="isUser"> <label for="username">用户账号</label> <input type="username" id="username" key="username"></inp
2020-09-09 15:32:28
1347
原创 vue 动态绑定class的具体事例
vue 动态绑定class的具体事例循环一个列表,点击列表切换样式.active{ color:red }<ul> <li v-for=" (item,index in moves)" :class="{active:curIndex===index}"@click="liClick(index)">{{item}}</li><ul>new Vue({ data:{ moves:['海贼王','七龙珠'], curIndex:0 }, m
2020-09-05 00:07:54
209
转载 2020-08-10-vue-preview的使用以及坑
vue-preview的使用以及坑首先贡献 vue-preview 的地址,如下https://github.com/LS1231/vue-previewvue-preview 的使用说明<template> <vue-preview :slides="slide1" @close="handleClose"></vue-preview></template> <script>export default { data
2020-08-10 20:44:01
259
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人