摘要: <template> <view style="width: 100%; height: 100%;"> <view class="tabs"> <view v-for="(tab, index) in tabs" :key="index" class="tab-item" :class="curr 阅读全文
posted @ 2022-03-31 13:11 skyhxm 阅读(135) 评论(0) 推荐(0)
摘要: 需求:div在一行内需要溢出滚动 方案: 1;父类元素需要设置 overflow-x: auto; //横向方向溢出元素 white-space: nowrap; //溢出的元素不换行 2;子元素需要设置 display: inline-block; //标记子元素为行内块元素 项目介绍 基于Thi 阅读全文
posted @ 2022-03-29 17:18 skyhxm 阅读(360) 评论(0) 推荐(0)
摘要: location / { #反向代理到 本地9501端口 proxy_pass http://127.0.0.1:9501; proxy_redirect off; proxy_set_header Host $host; #携带IP proxy_set_header X-Real-IP $remo 阅读全文
posted @ 2022-03-16 17:07 skyhxm 阅读(405) 评论(1) 推荐(0)
摘要: 问题: 关于vue三目运算符提示报错 1.三目运算符等于判断 {{ a==b ? '是' : '否'}} 2.其他三目运算符 &lt;代表小于号(<) &gt;代表大于符号(>) &le;表示小于或等于符号(<=) &ge;表示大于或等于符号(>=) 3.示例 {{ customPoints &lt 阅读全文
posted @ 2022-03-02 09:57 skyhxm 阅读(1133) 评论(0) 推荐(0)
摘要: 1.nginx调试输出内容到页面 location = /demo { charset utf-8; default_type text/html; return 500 "服务正在升级,请稍后再试……"; } 2.路由全局匹配 = 3.路由前缀完全匹配 ^~ 4.路由正则匹配 ~ 6.路由正则不区 阅读全文
posted @ 2021-07-21 10:21 skyhxm 阅读(416) 评论(0) 推荐(0)
摘要: $name = 'test'; $controller = 'test'; $a = '\\addons\\'.$name.'\\model\\'.$controller; $this->model = new $a(); 1.某个类的路径可以单独赋值给某个变量,new的时候需要当前变量加()实例化 阅读全文
posted @ 2021-07-18 17:21 skyhxm 阅读(285) 评论(0) 推荐(0)
摘要: /** * 递归实现无限极分类 * @param $array 分类数据 * @param $pid 父ID * @param $level 分类级别 * @return $list 分好类的数组 直接遍历即可 $level可以用来遍历缩进 */ public function getTree($a 阅读全文
posted @ 2021-07-14 11:47 skyhxm 阅读(387) 评论(0) 推荐(0)
摘要: 问题:关于fastadmin框架列表页面自定义按钮功能 案例:自定义一个同步数据的按钮 <a href="javascript:;" class="btn btn-primary btn-sync" title="{:__('Refresh')}" style="background: orange 阅读全文
posted @ 2021-06-30 11:50 skyhxm 阅读(5648) 评论(0) 推荐(1)
摘要: <?php declare (strict_types = 1); namespace app\controller; use app\BaseController; use think\facade\Db; class Index extends BaseController { public f 阅读全文
posted @ 2021-06-17 14:21 skyhxm 阅读(1133) 评论(0) 推荐(0)
摘要: 1.git init //初始化当前的git地址 2.git remote add github github.com //git remote add git标识 git地址 3.git pull github master --allow-unrelated-histories 4.git pu 阅读全文
posted @ 2021-06-15 11:01 skyhxm 阅读(205) 评论(0) 推荐(0)