摘要: windows下安装reids windows下redis下载地址:https://github.com/MSOpenTech/redis/releases。 启动redis服务:在redis目录下启动DOS命令,然后redis-server.exe 这时候另启一个cmd窗口,原来的不要关闭,不然就 阅读全文
posted @ 2017-02-09 10:42 武小帅 阅读(8911) 评论(0) 推荐(2) 编辑
摘要: 一、 开启pathinfo 开始在网上搜了一大堆, 不好使, 后来找到了这个, 亲测有效, 保存以方便查找 阅读全文
posted @ 2018-05-02 14:22 武小帅 阅读(122) 评论(0) 推荐(0) 编辑
摘要: show global variables like 'max_allowed_packet'; 查询结果集最大的限制 set global max_allowed_packet=1024*1024*16; 更改结果集限制的大小 show global variables like 'max_all 阅读全文
posted @ 2017-08-07 16:37 武小帅 阅读(132) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <style type="text/css"> #preview, .img, img { width:2 阅读全文
posted @ 2017-07-14 20:37 武小帅 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 在mysql中我们通常会采用limit来进行翻页查询,比如limit(0,10)表示列出第一页的10条数据,limit(10,10)表示列出第二页。但是,当limit遇到order by的时候,可能会出现翻到第二页的时候,竟然又出现了第一页的记录。 在mysql中我们通常会采用limit来进行翻页查 阅读全文
posted @ 2017-07-13 00:12 武小帅 阅读(4350) 评论(0) 推荐(0) 编辑
摘要: bootstrap:能够增加兼容性的强大框架. 因为项目需要数据验证,看bootstrapValidator 还不错,就上手一直,完美兼容,话不多说。 需要引用css: bootstrap.min.css bootstrapValidator.min.css js: jquery-1.10.2.mi 阅读全文
posted @ 2017-07-05 13:14 武小帅 阅读(5726) 评论(0) 推荐(0) 编辑
摘要: 择需要的插件(我是选这个gildas-lormeau/JSONView-for-Chrome); 4、点击【Download Zip】,插件下载完成,解压缩到相应目录(D:\Download\JSONView-for-Chrome-master); 5、安装,打开chrome - 扩展程序 (地址栏 阅读全文
posted @ 2017-06-22 13:32 武小帅 阅读(551) 评论(0) 推荐(0) 编辑
摘要: $(function(){ $('.check-all').on('click', function(){ $(this).parent('td').next('td').find(':checkbox').prop('checked', $(this).is(':checked')); }); $ 阅读全文
posted @ 2017-06-01 16:37 武小帅 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Js脚本页面 html页面 阅读全文
posted @ 2017-06-01 15:24 武小帅 阅读(156) 评论(0) 推荐(0) 编辑
摘要: $this->input->post() $this->input->get() echo $this->uri->segment();//控制器为1;方法为2;后面带的参数以此类推get获取值 阅读全文
posted @ 2017-05-23 09:37 武小帅 阅读(783) 评论(0) 推荐(0) 编辑
摘要: 设置你自己的路由规则 路由规则定义在 application/config/routes.php 文件中,在这个文件中你会 发现一个名为 $route 的数组,利用它你可以设置你自己的路由规则。 在路由规则中你可以使用通配符或正则表达式。 (:num) 匹配只含有数字的一段。 (:any) 匹配含有 阅读全文
posted @ 2017-05-23 09:09 武小帅 阅读(493) 评论(0) 推荐(0) 编辑