• 2023-03-01[Typescript] Clean type
    constpick=<TObj,TKeysextends(keyofTObj)[]>(obj:TObj,picked:TKeys)=>{returnpicked.reduce((acc,key)=>{acc[key]=obj[key];returnacc
  • 2023-01-22leetocde-374-easy
    GuessNumberHigherorLowerWeareplayingtheGuessGame.Thegameisasfollows:Ipickanumberfrom1ton.YouhavetoguesswhichnumberIpicked.Eve
  • 2022-10-13Vue组件上使用v-model之单选框
    子组件内容:<template><div><inputtype="radio":id="valueName":value="valueName":checked="picked===valueName":picked