![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
qinnzheng(郑琴)
主动才会有故事!
展开
-
vue点击网页其他空白区域关闭弹窗
阻止冒泡事件原创 2022-11-30 10:23:37 · 1895 阅读 · 2 评论 -
Vue中利用moment.js(时间格式化插件)做一个倒计时组件
moment.js原创 2022-07-22 10:19:30 · 1374 阅读 · 0 评论 -
vue中如何动态添加类名
1、三元运算表达式:class="show==true ? 'style1' : 'style2' "2、多个类名,使用Boolean值来判断类名是否生效:class="{style1:true,style2:2>1}"3、多个类名,使用数组( 推荐 )style1是已经存在的类名:class="[style1,{style2:true,style3:false}]"<a :class="[ 'btn', { 'btn-danger':原创 2022-05-17 15:05:22 · 4467 阅读 · 0 评论