vue 判断是否点击了当前的demo(div)元素框

我们可以通过点击事件来判断当前div有没有这个css样式,进行判断

 

 点击事件

 

posted @ 2021-09-07 11:51  light丶  阅读(1214)  评论(0)    收藏  举报