批量重命名 2022.7.30 2026.8.24 代码 38 1 分钟1 2 3 4 5 6 7 8 9 from os import system, popen originPostFix = 'js' toPostFix = 'ts' ans = popen(f'find . -name "*.{originPostFix}" ') for i in ans.read().split('\n'): if not i: continue system(f'mv {i}{i.replace(originPostFix, toPostFix)}')
Vueuse 2022.7.30 2026.8.24 151 1 分钟官网 : https://vueuse.org/ 源码解析 useLocalstorage 这个实现响应式的原理是 window下面有事件storage 代码如下……阅读更多 »
React Router Transition 2022.7.20 2026.8.24 351 1 分钟React Transition 对于React在切换路由的动画转场实现 参考自Vue-Element-Admin 1……阅读更多 »