<!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结合使用
-
Laravel 用户认证 Auth(精华)
很多应用是需要登陆后才能操作,Laravel 提供了一个 auth 工具来实现用户的认证功能。并且有一个 config/auth.php 来配置 auth 工具。大概看一下 auth 工具的常用方法
-
Laravel 的启动流程的详细介绍(精华)
这片文章详细介绍了laravel的启动流程的详细介绍情况
-
Laravel 从 $request 到 $response 的过程解析二(必读)
laravel 的请求会组装成 $request 对象,然后会依次经过中间件(前置部分),最终到达 url 指向的控制器方法,然后把返回数据组装为 $response 对象返回,再依次经过中间件 (后置部分),最终返回。
-
Laravel 流程分析——整体介绍
Laravel流程相当简单,我们分析一下index.php文件(下面的第几行为实际代码,不是指文件的行)
-
PHP 闭包(Closure)
闭包(Closure)又叫做匿名函数,也就是没有定义名字的函数。比如下面的例子:
-
php 魔术方法 __invoke()
当尝试以调用函数的方式调用一个对象时,该方法会被自动调用
-
php array_pop 删除数组最后一个元素实例
php array_pop函数将数组最后一个单元弹出(出栈),即删除数组的最后一个元素。本文章通过php实例向大家讲解array_pop函数的使用方法。
-
GuzzleHttp 请求设置超时时间并抓取报错信息
用GuzzleHttp,一定要做超时处理,否则会有灾难行的问题哦。
-
Laravel 创建自己的扩展包 package
安装laravel之后,我们会根据自己的需要创建自己的扩展包,本文将带你创建属于自己的laravel package 。
-
评价Plus(ThinkSNS+)最新的laravel框架
ThinkSNS们团队在使用laravel,不错,挺合我意。 但明显能感觉出来一个半开源的框架是多么的不负责任。