Tips
TypeScript
Support drag html element on mobile browser. Set touch-action: none to handler element. Remove undefined type from union type. type Foo = NonNullable<FooOrUndefined>; // { bar: number;...
read articleShell
Find large filefind . -type f -size +100M Add tracked file to gitignoregit rm --cached <file>rm...
read articleLife
...
read articleGIT
git commit --amend --no-edit -n -a && git push...
read articleFlutter
If your app include ffi code, you need to change build config before release. In Xcode, go to Target Runner > Build Settings > Strip Style. Change from All Symbols to Non-Global Symbols. Get...
read articleCSS
You can create icon sprite animations using the steps() animation-timing function button img { object-fit: cover; object-position: 0 0;}[aria-pressed="true"] img { animation: play 0.5s steps(20)...
read articleVue
使用 vueuse 的 useHover 时,需要在元素中添加 @click="() => void 0",否则在 ios 中不生效 Debug 弹出组件 setTimeout(function(){ debugger }, 5000) Firefox favicon 必须使用 32x32...
read article