会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Felix_Openmind
https://github.com/serendipitywzz
博客园
首页
新随笔
管理
上一页
1
···
22
23
24
25
26
27
28
29
30
···
44
下一页
2023年2月24日
Vue3中url传递参数通过全局前置守卫接收参数,利用store存储并控制DOM显示或隐藏(记录一个困扰了自己的一个Bug)
摘要: 业务场景: 根据路由传递的标志eg: hidden来控制侧边栏和横条显示或隐藏 核心代码: <a-layout-header class="header" v-if="!(parseInt(hidden) 1 ? true : false)"> <layout-header/> </a-layout
阅读全文
posted @ 2023-02-24 19:32 Felix_Openmind
阅读(645)
评论(0)
推荐(0)
2023年2月22日
JS剔除指定字符串
摘要: 
阅读全文
posted @ 2023-02-22 10:31 Felix_Openmind
阅读(181)
评论(0)
推荐(0)
2023年2月21日
如何清除git仓库的所有提交记录,成为一个新的干净仓库
摘要: 转载自:https://blog.csdn.net/icansoicrazy/article/details/128342811 操作步骤 1. 切换到新的分支 git checkout --orphan latest_branch git checkout --orphan 核心用途:以类似git
阅读全文
posted @ 2023-02-21 11:08 Felix_Openmind
阅读(540)
评论(0)
推荐(0)
2023年2月17日
AntDesign样式穿透解决方案
摘要: 业务效果 // 直接放在style标签中 不要放在<style lang="scss" scoped>标签中 <style> .ant-table.ant-table-bordered .ant-table-title { background: #f3f3f3; } </style> 上述方式会导
阅读全文
posted @ 2023-02-17 21:57 Felix_Openmind
阅读(1382)
评论(0)
推荐(0)
AntDesign中card卡片动态添加bodystyle样式,实现body切换
摘要: 业务效果 核心代码 <template> <a-layout class="layout"> <a-layout-header class="header" style="height: 50px"> <div class="wrapper content"> <span class="info">
阅读全文
posted @ 2023-02-17 19:10 Felix_Openmind
阅读(1694)
评论(0)
推荐(0)
2023年2月15日
杂七杂八的工具方法
摘要: 判断当前代码运行环境 const isBrowser = typeof window 'object' && typeof document 'object'; 清除所有Cookies const clearCookies = () => document.cookie.split(';').for
阅读全文
posted @ 2023-02-15 22:16 Felix_Openmind
阅读(23)
评论(0)
推荐(0)
Date Time相关处理
摘要: 给时间添加 am或pm // 'h' is an hour number const suffixAmPm = (h) => `${h % 12 0 ? 12 : h % 12}${h < 12 ? 'am' : 'pm'}`; suffixAmPm(0); // '12am' suffixAmPm
阅读全文
posted @ 2023-02-15 21:51 Felix_Openmind
阅读(35)
评论(0)
推荐(0)
前端字典字段处理enum.js
摘要: enum.js /** * 获取枚举值:STATUSMAP.TTT * 获取枚举描述:STATUSMAP.getDesc('SH') * 通过枚举值获取描述:STATUSMAP.getDescFromValue('TG') */ function createEnum(definition) { c
阅读全文
posted @ 2023-02-15 21:05 Felix_Openmind
阅读(113)
评论(0)
推荐(0)
2023年2月9日
Array常见使用场景
摘要: 参考:https://1loc.dev/ 将一个值转为数组的方法 const castArray = (value) => (Array.isArray(value) ? value : [value]); caseArray(1); // [1] 或直接使用Array.of(val)这个构造方法代
阅读全文
posted @ 2023-02-09 16:08 Felix_Openmind
阅读(82)
评论(0)
推荐(0)
Flex弹性布局实现四列网格
摘要: <head> <meta charset="utf-8"> <title></title> <style> * { margin: 0; padding: 0; box-sizing: border-box; } .container { display: flex; flex-wrap: wrap
阅读全文
posted @ 2023-02-09 14:06 Felix_Openmind
阅读(928)
评论(0)
推荐(0)
上一页
1
···
22
23
24
25
26
27
28
29
30
···
44
下一页
*{cursor: url(https://files-cdn.cnblogs.com/files/morango/fish-cursor.ico),auto;}