摘要: Django 入门博客小案例 安装 pip install django==2.0 创建项目 django-admin startproject [demo 项目名称] 运行项目 python manage.py runserver 创建应用 python manage.py startapp [blog 应用名称] hello world blog/views.py ... 阅读全文
posted @ 2019-07-10 22:24 大智如蠢 阅读(387) 评论(1) 推荐(0) 编辑
摘要: 代码地址: https://github.com/9499574/demo_chat_room 阅读全文
posted @ 2019-06-13 17:20 大智如蠢 阅读(813) 评论(0) 推荐(0) 编辑
摘要: 1.下载地址 http://sphinxsearch.com/downloads/current/ 2.解压文件放到盘内 3.根目录创建 data 和 log 文件夹 4.复制 etc目录下的 min.conf 到 bin目录 并修改成 后缀.conf 文件 5.修改.conf内容 6.生成文件 7 阅读全文
posted @ 2019-06-03 13:41 大智如蠢 阅读(1107) 评论(1) 推荐(0) 编辑
摘要: var scrollTop = $(document).scrollTop(); //滚动条高度 var clientHeight = document.documentElement.clientHeight; //屏幕的可见高度 var domHeight = 452; //元素的高度 var h = ((clientHeight - domHeight) / 2) + scrollTop;... 阅读全文
posted @ 2019-04-17 17:17 大智如蠢 阅读(1199) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-02-21 10:09 大智如蠢 阅读(3792) 评论(1) 推荐(1) 编辑
摘要: 在线体验 github:https://github.com/9499574/layui-transfer 阅读全文
posted @ 2018-11-23 18:23 大智如蠢 阅读(12052) 评论(2) 推荐(0) 编辑
摘要: 在线地址:https://9499574.github.io/layui-form-create/ 阅读全文
posted @ 2018-11-21 17:54 大智如蠢 阅读(5156) 评论(1) 推荐(2) 编辑
摘要: 在线预览链接:https://jshare.com.cn/temp/RSZx0q/1 阅读全文
posted @ 2018-11-13 19:59 大智如蠢 阅读(844) 评论(0) 推荐(0) 编辑
摘要: codeigniter-base-model使用文档 1.ORM与其他查询的区别 2.创建模型 models文件夹下创建Testa.php 3.控制器调用 4.CRUD方法 _where($where) $where = ['id'=>1] 或者 $where = "id=1" 2种写法 下面$wh 阅读全文
posted @ 2018-10-17 10:55 大智如蠢 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 1 $page = $this->get('page'); 2 $limit = $this->get('limit'); 3 $arr = array_chunk($data,$limit)[$page-1]; 阅读全文
posted @ 2018-08-15 17:10 大智如蠢 阅读(395) 评论(0) 推荐(0) 编辑