会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
心悠魂然
博客园
首页
新随笔
联系
订阅
管理
2025年11月3日
添加水印class封装
摘要: const _x = Symbol('x') const _body = Symbol('body') const _base64Url = Symbol('base64Url') class Watermark { props: any; // targetNode: HTMLElement |
阅读全文
posted @ 2025-11-03 10:49 你风致
阅读(4)
评论(0)
推荐(0)
2025年9月12日
手写loader看console是在哪个方法调用的
摘要: //name-console-loader.jsconst parser = require('@babel/parser') const traverse = require('@babel/traverse').default const generator = require('@babel/
阅读全文
posted @ 2025-09-12 11:13 你风致
阅读(4)
评论(0)
推荐(0)
2025年8月7日
微前端microApp备忘录
摘要: 1.主应用中抛出警告,micro-app未定义Vue.config.ignoredElements = [ 'micro-app',] 2.Vue主应用加载子应用或跳转时子应用频繁卸载和渲染原因:如果将route.fullPath或route.path设置为key,那么当路由变化时Vue会重新渲染组
阅读全文
posted @ 2025-08-07 15:42 你风致
阅读(157)
评论(0)
推荐(0)
2025年6月6日
老谷歌浏览器开发设置跨域
摘要: 1.桌面快捷方式属性目标更换地址如: D:\chromeOld\chrome.exe --disable-web-security --user-data-dir=D:\MyChromeDevUserData 2.谷歌浏览器设置chrome://flags/ 搜索cookie 将SameSite b
阅读全文
posted @ 2025-06-06 15:36 你风致
阅读(21)
评论(0)
推荐(0)
2025年5月19日
defineModel机制
摘要: defineModel 是一个便利宏。编译器将其展开为以下内容: 一个名为 modelValue 的 prop,本地 ref 的值与其同步; 一个名为 update:modelValue 的事件,当本地 ref 的值发生变更时触发 子组件内定义defineModel;父组件直接v-model绑定到子
阅读全文
posted @ 2025-05-19 18:09 你风致
阅读(11)
评论(0)
推荐(0)
2025年1月7日
webpack打包优化忽略moment的语言包
摘要: new webpack.IgnorePlugin({ resourceRegExp: /^\.\/locale$/, contextRegExp: /moment$/, }), 对于做了国际化处理的第三方包,会包含很多的语言包,而这些语言包对项目帮助不大(排除国际化项目),只会增大打包后包的体积,所
阅读全文
posted @ 2025-01-07 15:24 你风致
阅读(118)
评论(0)
推荐(0)
2024年12月9日
表格bodyCell响应式处理,划入列展示tooltip文字
摘要: //表格优化 bodyCell(column) { if(column.column?.key!=='operation'){ column.column.width = 'auto'; } if(column.column.render){ const cellRender = column.co
阅读全文
posted @ 2024-12-09 10:42 你风致
阅读(26)
评论(0)
推荐(0)
2024年11月6日
前端保留两位小数toFixed(2)会有坑
摘要: (422.445).toFixed(2) "422.44" (422.165).toFixed(2) "422.17" (422.446).toFixed(2) "422.45" (422.455).toFixed(2) "422.45" (422.456).toFixed(2) "422.46"
阅读全文
posted @ 2024-11-06 16:16 你风致
阅读(71)
评论(0)
推荐(0)
2024年10月14日
vue页面监控是否是手动刷新
摘要: //手动刷新的情况,路由from应该是没有多余路径的,我们可以由此来判断,并存储一个值到本地; beforeRouteEnter(to, from, next){ if(!from||from?.fullPath '/'){ //代表是手动刷新 sessionStorage.setItem('isR
阅读全文
posted @ 2024-10-14 10:17 你风致
阅读(33)
评论(0)
推荐(0)
2024年9月4日
动态新增锚点(如右侧悬浮导航)
摘要: //样式模拟 div > div { width: 200px; height: 500px; border: 1px solid #38c46d; } #anchor { position: fixed; width: 100px; height: 200px; border: 1px solid
阅读全文
posted @ 2024-09-04 14:55 你风致
阅读(61)
评论(0)
推荐(0)
下一页
公告