<!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结合使用
-
git关于文件权限修改引起的冲突及忽略文件权限的办法
git,权限修改,冲突,忽略
-
【前端性能】高性能滚动 scroll 及页面渲染优化
scroll,高性能,页面渲染
-
is_int 检测变量是否是整数
is_int — 检测变量是否是整数
-
is_int 检测变量是否是整数
is_int — 检测变量是否是整数
-
mysql自增主键归零的方法
如果曾经的数据都不需要的话,可以直接清空所有数据,并将自增字段恢复从1开始计数
-
php开启openssl的方法
php,开启,openssl
-
html5 postMessage解决跨域、跨窗口消息传递
postMessage()方法允许来自不同源的脚本采用异步方式进行有限的通信,可以实现跨文本档、多窗口、跨域消息传递。
-
mysql存在就更新,否则插入
,如果要在插入的时候先判断插入的数据是否存在数据库中,那每一次插入之前都要进行一次select的操作,这样效率不高?如何优化蛤?
-
php.ini修改php上传文件大小限制
upload_max_filesize = 8m ;望文生意,即允许上传文件大小的最大值。默认为2M
-
linux与windows安装gd库
linux与windows安装gd库