会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
sky
一条有梦想的咸鱼!
官网:
https://ruan.scmls.cn
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2022年3月31日
关于vue组件传值和事件绑定问题
摘要: <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)
2022年3月29日
div溢出横向滚动
摘要: 需求:div在一行内需要溢出滚动 方案: 1;父类元素需要设置 overflow-x: auto; //横向方向溢出元素 white-space: nowrap; //溢出的元素不换行 2;子元素需要设置 display: inline-block; //标记子元素为行内块元素 项目介绍 基于Thi
阅读全文
posted @ 2022-03-29 17:18 skyhxm
阅读(360)
评论(0)
推荐(0)
2022年3月16日
nginx反向代理hyperf
摘要: 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)
2022年3月2日
vue模板三目运算判断报错
摘要: 问题: 关于vue三目运算符提示报错 1.三目运算符等于判断 {{ a==b ? '是' : '否'}} 2.其他三目运算符 <代表小于号(<) >代表大于符号(>) ≤表示小于或等于符号(<=) ≥表示大于或等于符号(>=) 3.示例 {{ customPoints <
阅读全文
posted @ 2022-03-02 09:57 skyhxm
阅读(1133)
评论(0)
推荐(0)
2021年7月21日
nginx调试和location用法,匹配url
摘要: 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)
2021年7月18日
php 动态实例化某个类
摘要: $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)
2021年7月14日
php递归算法多级分类
摘要: /** * 递归实现无限极分类 * @param $array 分类数据 * @param $pid 父ID * @param $level 分类级别 * @return $list 分好类的数组 直接遍历即可 $level可以用来遍历缩进 */ public function getTree($a
阅读全文
posted @ 2021-07-14 11:47 skyhxm
阅读(387)
评论(0)
推荐(0)
2021年6月30日
fastadmin添加自定义按钮
摘要: 问题:关于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)
2021年6月17日
php严格模式的使用
摘要: <?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)
2021年6月15日
git添加github和gitee多个git地址管理
摘要: 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)
上一页
1
2
3
4
5
6
下一页
公告