摘要:
父传子,一般是用provide/inject来完成,传递复杂类型(对象、函数)需要先定义InjectionKey。 1、type.ts 2、App.vue中定义 3、Helloworld.vue中使用 4、结果 参考: https://blog.csdn.net/SEKIRO_DJ/article/ 阅读全文
posted @ 2022-04-02 20:51
jiduoduo
阅读(839)
评论(0)
推荐(0)
摘要:
TypeScript: interface Worker { name: string; age: string; } interface student { name: string; addr: string; } export type ExcludeKeys = Exclude<keyof 阅读全文
posted @ 2022-04-02 20:44
jiduoduo
阅读(300)
评论(0)
推荐(0)

浙公网安备 33010602011771号