上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 34 下一页
  2021年3月10日
摘要: 实际开发工作中经常用到json数据,那么就会有这样一个需求:在谷歌浏览器中访问URL地址返回的json数据能否按照json格式展现出来。 比如,在谷歌浏览器中访问:http://jsonview.com/example.json 展现效果如下: 那么安装了JsonView扩展程序后的展现效果如下: 阅读全文
posted @ 2021-03-10 10:20 车车大人 阅读(523) 评论(0) 推荐(0)
  2020年12月11日
摘要: <?php /** * */ class DB { public $link; private static $db;//看当前这个类有没有被实例化 private function __construct($host,$user,$pwd,$dbname){ $this->link = mysql 阅读全文
posted @ 2020-12-11 10:52 车车大人 阅读(271) 评论(0) 推荐(1)
  2020年12月3日
摘要: <!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 车车大人 阅读(580) 评论(0) 推荐(0)
  2020年11月27日
摘要: 案例效果 代码示例: <!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 车车大人 阅读(853) 评论(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 车车大人 阅读(480) 评论(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 车车大人 阅读(320) 评论(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 车车大人 阅读(920) 评论(1) 推荐(0)
  2020年8月6日
摘要: 控制器: public function lists(Request $request){ $where = []; //条件搜索 if(!empty($request['type'])){ $where['type'] = $request['type']; } if(!empty($reques 阅读全文
posted @ 2020-08-06 16:21 车车大人 阅读(735) 评论(0) 推荐(0)
  2020年7月23日
摘要: 首先要登录到宝塔的管理页面 第一步: 放行3306端口号 第二步: 修改数据库密码 第三步: GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION; 第四步: FLUSH PRIVILEGES 阅读全文
posted @ 2020-07-23 18:41 车车大人 阅读(824) 评论(0) 推荐(0)
  2020年7月22日
摘要: 列表页面的静态化: 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 车车大人 阅读(1326) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 34 下一页