const ruleForm = reactive({
id: '',
sex: '',
account: '',
name: '',
phone: '',
email: '',
address: '',
whitelist: '',
blacklist: '',
})
type FooType = keyof typeof ruleForm;
Object.keys(ruleForm).forEach((v,k,f)=>{
ruleForm[v as FooType]=''
})
TS 中 对Object 循环
最新推荐文章于 2024-05-17 00:15:00 发布