<!DOCTYPE html><html lang="en"><head>
<meta charset="UTF-8">
<title>动画</title>
<script type="text/javascript" src="vue.js"></script>
<link rel="stylesheet" type="text/css" href="animate.css">
<style type="text/css">
p {
width: 300px;
height: 300px;
background: red;
margin: 10px auto;
}
</style>
<script type="text/javascript">
window.onload = function(){ var app = new Vue({
el:'#box',
data:{
show:false
}
})
} </script></head><body>
<div id="box">
<!-- 控制数据的值切换显示隐藏 -->
<button @click="show=!show">transition</button>
<!-- <transition enter-active-class="zoomInLeft" leave-active-class="zoomOutRight">
<p v-show="show" class="animated"></p>
</transition> -->
<!-- 第二种方法 -->
<!-- <transition enter-active-class="animated zoomInLeft" leave-active-class="animated zoomOutRight">
<p v-show="show"></p>
</transition> -->
<!-- 多元素运动 -->
<transition-group enter-active-class="zoomInLeft" leave-active-class="zoomOutRight">
<p v-show="show" class="animated" :key="1"></p>
<p v-show="show" class="animated" :key="2"></p>
</transition-group>
</div></body></html>vue过渡和animate.css结合使用
-
lodash.groupBy 处理数组对象按需分组
groupBy可以实现按id分组了。
-
Could not find method google() for arguments [] on repository container.
1、打开项目根目录下android/gradle/wrapper/gradle-wrapper.properties 将distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip中的2.14.1改成4.1 ———————————————— 版权声明:本文为CSDN博主「peachesTao」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/taoerchun/article/details/93870941
-
inline svg想写介绍以及使用
inline svg是目前前端图标解决方案的最优解(当然不仅限于图标),而且使用方式也及其简单,只要将svg图标代码当成普通的html元素来使用即可
-
鼠标点击产生"富强""民主""文明"方法
我们后期可以封装成vue的
-
you may have an infinite update loop in watcher with expression
一般是因为在watch中改变所监听的数据
-
Warning: Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary
返回的数据里没有名为key的键值,所以需要在组件上设置这个表是以什么作为key来区别每一行数据的。
-
ant [Vue warn]: Invalid prop: custom validator check failed for prop "pagination".错误
遇到这样的问题,一般是props中的pagination有值不匹配造成的 我们可以通过打印数据检测一下有没有赋给其空值
-
js把树结构变成数组
js递归遍历树结构(tree)
-
js根据对象某一属性去重的实现方式
通过filter的属性进行去重, 因为map key唯一,所以你想要根据哪个属性去重,res.has(a)里a就可以改成什么,比如a.name
-
深入理解js的prototype以及prototype的一些应
prototype是函数的一个属性,并且是函数的原型对象。引用它的必然是函数,这个应该记住。