cnweed.com
域名年龄: 15年3个月19天HTTP/1.1 200 OK 访问时间:2019年06月09日 00:26:59 服务器:Apache/2 语言环境:PHP/5.4.45 动作:Accept-Encoding,User-Agent Content-Encoding: gzip 文件大小:7613 Keep-Alive: timeout=2, max=100 连接:Keep-Alive 类型:text/html; charset=UTF-8 网站编码:UTF-8
野草博客昔者周庄梦为蝴蝶,栩栩然蝴蝶也。自喻适志与!不知周也。俄然觉,则蘧蘧然周也。搜索关键字搜索首页给我留言连接PHP之Trait详解作者: admin时间: 2018-10-22分类: PHP5 条评论php从以前到现在一直都是单继承的语言,无法同时从两个基类中继承属性和方法,为了解决这个问题,php出了Trait这个特性用法:通过在类中使用use 关键字,声明要组合的Trait名称,具体的Trait的声明使用Trait关键词,Trait不能实例化如下代码实例:<?phptrait Dog{public $name="dog";public function bark(){echo "This is dog";}}class Animal{public function eat(){echo "This is animal eat";}}class Cat extends Animal{use Dog;public function drive(){echo "This is cat drive";}}$cat = new Cat();$cat->drive();echo "<br/>";$cat->eat();echo "<br/>";$cat->bark();?>输出- 阅读剩余部分 -PHP计算两个日期相差的天数方法详解作者: admin时间: 2018-10-18分类: HTML & CSS & JS4 条评论本文实例讲述了php计算两个日期相差天数的方法。分享给大家供大家参考。具体实现方法如下:实例一:/*** 求两个日期之间相差的天数* (针对1970年1月1日之后,求之前可以采用泰勒公式)* @param string $date1* @param string $date2* @return number*/function diff_date($date1, $date2){if($date1>$date2){$startTime = strtotime($date1);$endTime = strtotime($date2);}else{$startTime = strtotime($date2);$endTime = strtotime($date1);}$diff = $startTime-$endTime;$day = $diff/86400;return intval($day);}- 阅读剩余部分 -Laravel 5.6 多用户表登陆 auth user admin作者: admin时间: 2018-10-14分类: PHP1 条评论Laravel 5.6 中文文档http://laravelacademy.org/laravel-docs-5_6 http://laravelacademy.org/post/8900.html http://laravelacademy.org/post/8851.html 注:想要快速上手?只需要在新安装的 Laravel 应用下运行 php artisan make:auth 和 php artisan migrate,这两个命令会生成用户登录注册所需要的所有东西,然后在浏览器中访问 http://your-app.dev/register 即可。php artisan make:authphp artisan migrate创建用户模块 以及数据库 友情提示:新建的用于登录认证的模型类需要继承 IlluminateFoundationAuthUser 基类,不然后面就会出现不能认证的窘况。use Illuminate\Foundation\Auth\User;php artisan make:model Admin -m模型Admin.php(参考appUser.php) - 阅读剩余部分 -利用jquery制作滚动到指定位置触发动画作者: admin时间: 2018-10-14分类: HTML & CSS & JS评论<!DOCTYPE html><html><head><meta charset="utf-8"><title>利用jquery制作滚动到指定位置触发动画</title><script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.9.1/jquery.min.js"></script><style type="text/css">*{ margin:0px; padding:0px;}.gs{position:relative;top:100px; background-color:#099; left:150px; width:80px; }.xz{animation:roate 2s;animation-fill-mode:forwards;animation-direction:alternate;}@keyframes roate{from { transform:rotate(0deg);width:100px;height:100px; }to{transform:rotate(360deg);width:200px;height:200px;}}.xs{ width:50px; float: left; height:30px; background-color: #F90; position:fixed; left:700px; top:0px;}</style></head><body><script type="text/javascript">/*var a,b,c;a=$("#dh").offset().top;//元素相对于窗口的距离b=$(window).scrollTop(); //监控窗口已滚动的距离;c=$(document).height();//整个文档的高度d=$(window).height();//浏览器窗口的高度element 标签cssname 动画offset 相对于窗口的距离*/function scrollnumber(element,cssname,offset){var a,b,c,d;d=$(element).offset().top;a=eval(d + offset);b=$(window).scrollTop(); c=$(window).height();if(b+c>a){$((element)).addClass((cssname));}}functi
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2026-01-20 03:40, Process in 0.0078 second.