• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
车车大人
博客园    首页    新随笔    联系   管理     
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 34 下一页
2021年3月10日
谷歌安装json解析工具
摘要: 实际开发工作中经常用到json数据,那么就会有这样一个需求:在谷歌浏览器中访问URL地址返回的json数据能否按照json格式展现出来。 比如,在谷歌浏览器中访问:http://jsonview.com/example.json 展现效果如下: 那么安装了JsonView扩展程序后的展现效果如下: 阅读全文
posted @ 2021-03-10 10:20 车车大人 阅读(504) 评论(0) 推荐(0)
2020年12月11日
PHP单例模式
摘要: <?php /** * */ class DB { public $link; private static $db;//看当前这个类有没有被实例化 private function __construct($host,$user,$pwd,$dbname){ $this->link = mysql 阅读全文
posted @ 2020-12-11 10:52 车车大人 阅读(266) 评论(0) 推荐(1)
2020年12月3日
Vue实现表单添加+正则验证+选择事件+批量删除+模糊搜索
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script src="js/vue.js"></script> <link rel="stylesheet" type="text/css" href="cs 阅读全文
posted @ 2020-12-03 15:06 车车大人 阅读(576) 评论(0) 推荐(0)
2020年11月27日
Vue实现天气查询以及本地搜索功能
摘要: 案例效果 代码示例: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script src="js/vue.js"></script> <script src="https://unpkg.com/axios 阅读全文
posted @ 2020-11-27 18:50 车车大人 阅读(837) 评论(0) 推荐(0)
2020年10月29日
购物车加减库存以及多选框的选择实现改变总价
摘要: {__NOLAYOUT__} <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <script type="text/javascript" src="__STATIC__/index_style/js/jq 阅读全文
posted @ 2020-10-29 16:37 车车大人 阅读(477) 评论(0) 推荐(0)
2020年10月20日
无限极递归的处理方式
摘要: //先查询所有的数组 public function getAll(){ $data = $this->select(); //调用递归查询相关的小数组 return $this->digui($data,$pid=0); } //定义一个递归的方法 public function digui($d 阅读全文
posted @ 2020-10-20 16:36 车车大人 阅读(307) 评论(0) 推荐(0)
2020年9月25日
签到的一些基本逻辑
摘要: 思维导图 控制器 //签到 public function userQian(Request $request){ if(empty($request['user_id'])){ return ['code'=>1,'msg'=>'参数不能为空','result'=>null]; } $curren 阅读全文
posted @ 2020-09-25 17:25 车车大人 阅读(904) 评论(1) 推荐(0)
2020年8月6日
Laravel实现列表展示+redis优化+多条件精确查询
摘要: 控制器: public function lists(Request $request){ $where = []; //条件搜索 if(!empty($request['type'])){ $where['type'] = $request['type']; } if(!empty($reques 阅读全文
posted @ 2020-08-06 16:21 车车大人 阅读(733) 评论(0) 推荐(0)
2020年7月23日
使用宝塔linux安装完成之后,如何设置windows本地访问线上数据库
摘要: 首先要登录到宝塔的管理页面 第一步: 放行3306端口号 第二步: 修改数据库密码 第三步: GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION; 第四步: FLUSH PRIVILEGES 阅读全文
posted @ 2020-07-23 18:41 车车大人 阅读(820) 评论(0) 推荐(0)
2020年7月22日
laravel5.5实现页面静态化
摘要: 列表页面的静态化: public function lists(){ $dir = dirname(app_path()).'/resources/views/html'; if(file_exists($dir.'/list.blade.php') && time()<filemtime($dir 阅读全文
posted @ 2020-07-22 17:34 车车大人 阅读(1319) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 34 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3