会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
刘小伟
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
17
18
19
20
21
22
23
24
25
···
28
下一页
2017年6月28日
HTMLPurifier laravel 过滤输入文本防止XSS攻击安装使用
摘要: Laravel 5本身没有这个能力来防止xss跨站攻击了,但是这它可以使用Purifier 扩展包集成 HTMLPurifier 防止 XSS 跨站攻击。 1、安装 HTMLPurifier 是基于 PHP 编写的富文本 HTML 过滤器,通常我们可以使用它来防止 XSS 跨站攻击,更多关于 HTM
阅读全文
posted @ 2017-06-28 14:37 刘小伟
阅读(981)
评论(0)
推荐(0)
2017年6月12日
git 合并分支出现 Please enter a commit message to explain why this merge is necessary.
摘要: Please enter a commit message to explain why this merge is necessary. 请输入提交消息来解释为什么这种合并是必要的 git 在pull或者合并分支的时候有时会遇到这个界面。可以不管(直接下面3,4步),如果要输入解释的话就需要: 1
阅读全文
posted @ 2017-06-12 10:53 刘小伟
阅读(571)
评论(0)
推荐(0)
2017年6月8日
Thinkpad E440个性化设置:如何/禁用关闭触摸板?
摘要: 文章出自:http://www.cnblogs.com/52php/p/5677643.html #如何禁用/关闭触摸版 默认情况下,ThinkPad E440是不支持触摸板的关闭功能,如果要关闭的话,需要去官方下载相应的鼠标驱动 UltraNav。 下载地址:http://think.lenovo
阅读全文
posted @ 2017-06-08 23:33 刘小伟
阅读(353)
评论(0)
推荐(0)
js取unix timestamp时间戳
摘要: js不提供直接取unix timestamp的戳记,但是可以用一个简单的语句来实现: var timestamp=Math.round(new Date().getTime()/1000) ; 简单解释一下: new Date() 初始化一个日期时间对象 get.Time()取毫秒数,所以要取100
阅读全文
posted @ 2017-06-08 10:30 刘小伟
阅读(487)
评论(0)
推荐(0)
2017年6月2日
用css 添加手状样式,鼠标移上去变小手,变小手
摘要: cursor:pointer; 用JS使鼠标变小手onmouseover(鼠标越过的时候) onmouseover="this.style.cursor='hand'" cursor其他取值 auto :标准光标 default :标准箭头 pointer, hand :手形光标 wait :等待光
阅读全文
posted @ 2017-06-02 13:58 刘小伟
阅读(180)
评论(0)
推荐(0)
laravel之表单篇
摘要: 一、Controller介绍 1) Controller之Request 2) Controller之Session Controller之Response Controller之Middleware
阅读全文
posted @ 2017-06-02 13:40 刘小伟
阅读(258)
评论(0)
推荐(0)
Laravel Blade模板引擎
摘要: 1、Blade模板引擎简介及模板继承的使用 2、基础语法及include的使用 3、流程控制 4、模板中的URL
阅读全文
posted @ 2017-06-02 13:37 刘小伟
阅读(199)
评论(0)
推荐(0)
Laravel 连接数据库、操作数据库的三种方式
摘要: laravel中提供DB facade(原始查找)、查询构造器、Eloquent ORM三种操作数据库方式 1、连接数据库 .env 数据库配置 DB_HOST=localhost dbhost DB_DATABASE=laravel dbname DB_USERNAME=root username
阅读全文
posted @ 2017-06-02 13:36 刘小伟
阅读(2196)
评论(0)
推荐(0)
laravel模型
摘要: 1、新建模型 Route::get('member/index', 'MemberController@index'); namespace App\Http\Controllers; use App\Member; class MemberController extends Controller
阅读全文
posted @ 2017-06-02 13:35 刘小伟
阅读(195)
评论(0)
推荐(0)
laravel视图
摘要: 1、怎样输出视图 namespace App\Http\Controllers; class MemberController extends Controller { public function index() { return view('member'); } } Route::get('
阅读全文
posted @ 2017-06-02 13:35 刘小伟
阅读(112)
评论(0)
推荐(0)
上一页
1
···
17
18
19
20
21
22
23
24
25
···
28
下一页
公告