摘要: public function lists(){ $dir = dirname(app_path()).'/resources/views/html'; if(file_exists($dir.'/list.blade.php') && time()<filemtime($dir.'/list.bl 阅读全文
posted @ 2021-03-11 10:56 阿辉很努力 阅读(326) 评论(0) 推荐(0)
摘要: 首先要登录到宝塔的管理页面 第一步: 放行3306端口号 第二步: 修改数据库密码 第三步: GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION; 第四步: FLUSH PRIVILEGES 阅读全文
posted @ 2021-03-11 10:55 阿辉很努力 阅读(186) 评论(0) 推荐(0)
摘要: public function lists(Request $request){ $where = []; //条件搜索 if(!empty($request['type'])){ $where['type'] = $request['type']; } if(!empty($request['ti 阅读全文
posted @ 2021-03-11 10:46 阿辉很努力 阅读(128) 评论(0) 推荐(0)
摘要: 思维导图 控制器 //签到 public function userQian(Request $request){ if(empty($request['user_id'])){ return ['code'=>1,'msg'=>'参数不能为空','result'=>null]; } $curren 阅读全文
posted @ 2021-03-11 10:42 阿辉很努力 阅读(175) 评论(0) 推荐(0)
摘要: //先查询所有的数组 public function getAll(){ $data = $this->select(); //调用递归查询相关的小数组 return $this->digui($data,$pid=0); } //定义一个递归的方法 public function digui($d 阅读全文
posted @ 2021-03-11 10:40 阿辉很努力 阅读(54) 评论(0) 推荐(0)
摘要: {__NOLAYOUT__} <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <script type="text/javascript" src="__STATIC__/index_style/js/jq 阅读全文
posted @ 2021-03-11 10:39 阿辉很努力 阅读(68) 评论(0) 推荐(0)
摘要: 案例效果 代码示例: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script src="js/vue.js"></script> <script src="https://unpkg.com/axios 阅读全文
posted @ 2021-03-11 10:36 阿辉很努力 阅读(178) 评论(0) 推荐(0)
摘要: <!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 @ 2021-03-11 10:35 阿辉很努力 阅读(86) 评论(0) 推荐(0)
摘要: <?php/*** */class DB{ public $link; private static $db;//看当前这个类有没有被实例化 private function __construct($host,$user,$pwd,$dbname){ $this->link = mysqli_co 阅读全文
posted @ 2021-03-11 09:47 阿辉很努力 阅读(37) 评论(0) 推荐(0)
摘要: 实际开发工作中经常用到json数据,那么就会有这样一个需求:在谷歌浏览器中访问URL地址返回的json数据能否按照json格式展现出来。 比如,在谷歌浏览器中访问:http://jsonview.com/example.json 展现效果如下: 那么安装了JsonView扩展程序后的展现效果如下: 阅读全文
posted @ 2021-03-11 09:45 阿辉很努力 阅读(172) 评论(0) 推荐(0)