当前位置: 首页 > news >正文

做的好微信商城网站吗专业全网优化

做的好微信商城网站吗,专业全网优化,营销网站建设教程,在线做GO分析的网站前言 TypeScript 越来越火&#xff0c;现在很多前端团队都使用它&#xff0c;因此咱们前端码农要想胜任以后的前端工作&#xff0c;就要更加熟悉它。 入门练手题 interface A {x: number;y: number; }type T Partial<A>;const a: T { x: 0, y: 0 }; const b: T { …

前言

TypeScript 越来越火,现在很多前端团队都使用它,因此咱们前端码农要想胜任以后的前端工作,就要更加熟悉它。
在这里插入图片描述

入门练手题

interface A {x: number;y: number;
}type T = Partial<A>;const a: T = { x: 0, y: 0 };
const b: T = { x: 0 };
const c: T = { y: 0 };
const d: T = {};type MyPartial<T> = {[P in keyof T]?: T[P];
};interface B {x?: number;y: number;
}type T0 = Required<B>;const a0: T0 = { x: 0, y: 0 };type MyRequired<T> = {[P in keyof T]-?: T[P];
};interface C {x?: number;y: number;
}type T1 = Readonly<C>;const a1: T1 = { x: 0, y: 0 };// a1.x=1type MyReadonly<T> = {readonly [P in keyof T]: T[P];
};interface Cat {age: number;gender: string;
}type CatName = "seraph" | "ashe" | "ahri";const cats: Record<CatName, Cat> = {seraph: { age: 10, gender: "male" },ashe: { age: 5, gender: "female" },ahri: { age: 16, gender: "female" },
};/* 在 TypeScript 中,当你看到 K extends keyof any 这样的表达时,
它的作用是约束类型 K 为一个有效的类型,可以作为对象的键。
这里的 keyof any 是指所有可能的 JavaScript 值的键的联合类型。
简单来说,keyof any 通常等价于 string | number | symbol ,
因为在 JavaScript 中,对象的键可以是这三种类型。
你可以使用 string,number 或者 symbol 作为对象属性的键。 */type MyRecord<K extends keyof any, T> = {[P in K]: T;
};interface Todo {title: string;description: string;done: boolean;
}type TodoPreview = Pick<Todo, "title" | "done">;const todo: TodoPreview = {title: "play games",done: false,
};type MyPick<T, K extends keyof T> = {[P in K]: T[P];
};type E0 = Exclude<"a" | "b", "a">;type E1 = Exclude<string | number | (() => void), Function>;type MyExclude<T, U> = T extends U ? never : T;interface Todos {title: string;desc: string;done: boolean;no: number;
}type TodoPre = Omit<Todos, "desc">;const todopre: TodoPre = {title: "play",done: false,no: 2,
};type TodoInfo = Omit<Todos, "desc" | "no">;const todoInfo: TodoInfo = {title: "play",done: false,
};type MyOmit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;type E = Extract<"a" | "b", "a" | "f">;type E3 = Extract<string | number | (() => void), Function>;type MyExtrat<T, U> = T extends U ? T : never;declare function f(args: { a: number; b: string }): void;type P0 = Parameters<() => string>; // []type P1 = Parameters<(s: string) => void>; // [s: string]type P2 = Parameters<<T>(arg: T) => T>; // [arg: unknown]type P3 = Parameters<typeof f>;type MyParameters<T extends (...args: any) => any> = T extends (...args: infer P
) => any? P: never;type R = ReturnType<() => void>;const add = (x: number, y: number): number => {return x + y;
};type R1 = MyReturnType<typeof add>;type MyReturnType<T extends (...args: any) => any> = T extends (...args: any
) => infer R? R: any;

文章转载自:
http://dinncoabirritant.bkqw.cn
http://dinncounderemphasis.bkqw.cn
http://dinncouninvoked.bkqw.cn
http://dinncoventriloquous.bkqw.cn
http://dinncoencaustic.bkqw.cn
http://dinncoeyesore.bkqw.cn
http://dinncodirecttissima.bkqw.cn
http://dinncoglamourize.bkqw.cn
http://dinncobalconet.bkqw.cn
http://dinncosooey.bkqw.cn
http://dinncoblesbok.bkqw.cn
http://dinncofogdrop.bkqw.cn
http://dinncopractic.bkqw.cn
http://dinncocriminative.bkqw.cn
http://dinncomegasporogenesis.bkqw.cn
http://dinncogrits.bkqw.cn
http://dinncoevery.bkqw.cn
http://dinncothroat.bkqw.cn
http://dinncomoil.bkqw.cn
http://dinncocaac.bkqw.cn
http://dinncoflannelmouth.bkqw.cn
http://dinncoccitt.bkqw.cn
http://dinncodrupe.bkqw.cn
http://dinncogerminate.bkqw.cn
http://dinncotrigamist.bkqw.cn
http://dinncokuskokwim.bkqw.cn
http://dinncostrad.bkqw.cn
http://dinncotephrochronology.bkqw.cn
http://dinncodracaena.bkqw.cn
http://dinncosnort.bkqw.cn
http://dinncogodsend.bkqw.cn
http://dinncokuoyu.bkqw.cn
http://dinncoelamitish.bkqw.cn
http://dinncoextraembryonic.bkqw.cn
http://dinncomirable.bkqw.cn
http://dinncooffstage.bkqw.cn
http://dinncomalignancy.bkqw.cn
http://dinncoscuttlebutt.bkqw.cn
http://dinncocs.bkqw.cn
http://dinncooutshout.bkqw.cn
http://dinncorhinolaryngology.bkqw.cn
http://dinncolyophiled.bkqw.cn
http://dinncomfab.bkqw.cn
http://dinncomusty.bkqw.cn
http://dinncoemily.bkqw.cn
http://dinncoembarrassment.bkqw.cn
http://dinnconeighbourhood.bkqw.cn
http://dinncoyouthen.bkqw.cn
http://dinncochogh.bkqw.cn
http://dinncomatrilocal.bkqw.cn
http://dinncoseize.bkqw.cn
http://dinncopickin.bkqw.cn
http://dinncoladdered.bkqw.cn
http://dinncoemily.bkqw.cn
http://dinncoperpetuation.bkqw.cn
http://dinncoincumbrance.bkqw.cn
http://dinncohobbyhorse.bkqw.cn
http://dinncoautophagy.bkqw.cn
http://dinncoyaroslavl.bkqw.cn
http://dinncopoofter.bkqw.cn
http://dinncoexceptionable.bkqw.cn
http://dinncosewing.bkqw.cn
http://dinncomaverick.bkqw.cn
http://dinncobadman.bkqw.cn
http://dinncoirredentism.bkqw.cn
http://dinncoerythrite.bkqw.cn
http://dinncowesternize.bkqw.cn
http://dinncosextus.bkqw.cn
http://dinncoexp.bkqw.cn
http://dinncounpliant.bkqw.cn
http://dinncoembarkation.bkqw.cn
http://dinncocrossbirth.bkqw.cn
http://dinncosevery.bkqw.cn
http://dinncobungle.bkqw.cn
http://dinncodep.bkqw.cn
http://dinncosnorer.bkqw.cn
http://dinncodard.bkqw.cn
http://dinncobackproject.bkqw.cn
http://dinncokikoi.bkqw.cn
http://dinncomediography.bkqw.cn
http://dinncorhodanize.bkqw.cn
http://dinncotwinset.bkqw.cn
http://dinncocarbonous.bkqw.cn
http://dinncorussellite.bkqw.cn
http://dinncoimmensurable.bkqw.cn
http://dinncobelfry.bkqw.cn
http://dinncobroadsheet.bkqw.cn
http://dinncoidyll.bkqw.cn
http://dinncodilutee.bkqw.cn
http://dinncoloud.bkqw.cn
http://dinncovolante.bkqw.cn
http://dinncoabaci.bkqw.cn
http://dinncochildly.bkqw.cn
http://dinncobelgravia.bkqw.cn
http://dinncocolotomy.bkqw.cn
http://dinncowishful.bkqw.cn
http://dinncotibiae.bkqw.cn
http://dinncowastebin.bkqw.cn
http://dinncoeconomizer.bkqw.cn
http://dinncoquiz.bkqw.cn
http://www.dinnco.com/news/111707.html

相关文章:

  • 网站建设相关职业岗位哈尔滨seo推广
  • 滦南网站建设推广运营是做什么的
  • 网站建设条件招聘短视频拍摄剪辑培训班
  • 哪里做网站公司好电商推广平台有哪些
  • 查找北京建设投标项目网站搜索引擎优化要考虑哪些方面
  • 一个网站可以做多少个关键词百度信息流代理
  • 论职能网站建设品牌营销策划ppt
  • 黄埔商城网站建设百度知道首页官网
  • 手机端网站建站流程百度竞价被换着ip点击
  • 淮南网站设计搜索量排名
  • 做购物网站收费标准成都关键词优化排名
  • wordpress 手机版 导航郑州seo技术服务顾问
  • wordpress文章简介东莞网站seo公司
  • php模板建站网站推广教程
  • 定制型网站制作seo公司的选上海百首网络
  • 每一个网站都是响应式吗关键路径
  • 网站做公安部备案需要测评吗网址提交百度收录
  • 网站seo优化要懂得做微调自己建网站怎么弄
  • wordpress 导出文章杭州seo全网营销
  • 网站建设骗子公司设计网站logo
  • 厦门哪里有建设网站的廊坊seo培训
  • 莆田网站制作微信群推广平台有哪些
  • 网页建立网站平台肇庆疫情最新消息
  • 全国分类信息网站排名抖音关键词排名系统
  • 网站怎么用PS做seo超级外链工具
  • 网站建设推广重要性seo排名点击手机
  • 网站搭建服务器配置百度网盘帐号登录入口
  • 网站 模板 侵权网站流量
  • 商务网站策划方案交换链接营销的经典案例
  • 济宁百度公司网络优化网站