批量重命名

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)}')

React Use

Vueuse

官网 : https://vueuse.org/ 源码解析 useLocalstorage 这个实现响应式的原理是 window下面有事件storage 代码如下……