当前位置:网站首页>TS所有dom元素的类型声明
TS所有dom元素的类型声明
2022-07-05 14:32:00 【原谅我不够洒脱】
TS所有dom元素的类型声明,TS已声明,可以直接用
interface HTMLElementTagNameMap {
"a": HTMLAnchorElement;
"abbr": HTMLElement;
"address": HTMLElement;
"applet": HTMLAppletElement;
"area": HTMLAreaElement;
"article": HTMLElement;
"aside": HTMLElement;
"audio": HTMLAudioElement;
"b": HTMLElement;
"base": HTMLBaseElement;
"bdi": HTMLElement;
"bdo": HTMLElement;
"blockquote": HTMLQuoteElement;
"body": HTMLBodyElement;
"br": HTMLBRElement;
"button": HTMLButtonElement;
"canvas": HTMLCanvasElement;
"caption": HTMLTableCaptionElement;
"cite": HTMLElement;
"code": HTMLElement;
"col": HTMLTableColElement;
"colgroup": HTMLTableColElement;
"data": HTMLDataElement;
"datalist": HTMLDataListElement;
"dd": HTMLElement;
"del": HTMLModElement;
"details": HTMLDetailsElement;
"dfn": HTMLElement;
"dialog": HTMLDialogElement;
"dir": HTMLDirectoryElement;
"div": HTMLDivElement;
"dl": HTMLDListElement;
"dt": HTMLElement;
"em": HTMLElement;
"embed": HTMLEmbedElement;
"fieldset": HTMLFieldSetElement;
"figcaption": HTMLElement;
"figure": HTMLElement;
"font": HTMLFontElement;
"footer": HTMLElement;
"form": HTMLFormElement;
"frame": HTMLFrameElement;
"frameset": HTMLFrameSetElement;
"h1": HTMLHeadingElement;
"h2": HTMLHeadingElement;
"h3": HTMLHeadingElement;
"h4": HTMLHeadingElement;
"h5": HTMLHeadingElement;
"h6": HTMLHeadingElement;
"head": HTMLHeadElement;
"header": HTMLElement;
"hgroup": HTMLElement;
"hr": HTMLHRElement;
"html": HTMLHtmlElement;
"i": HTMLElement;
"iframe": HTMLIFrameElement;
"img": HTMLImageElement;
"input": HTMLInputElement;
"ins": HTMLModElement;
"kbd": HTMLElement;
"label": HTMLLabelElement;
"legend": HTMLLegendElement;
"li": HTMLLIElement;
"link": HTMLLinkElement;
"main": HTMLElement;
"map": HTMLMapElement;
"mark": HTMLElement;
"marquee": HTMLMarqueeElement;
"menu": HTMLMenuElement;
"meta": HTMLMetaElement;
"meter": HTMLMeterElement;
"nav": HTMLElement;
"noscript": HTMLElement;
"object": HTMLObjectElement;
"ol": HTMLOListElement;
"optgroup": HTMLOptGroupElement;
"option": HTMLOptionElement;
"output": HTMLOutputElement;
"p": HTMLParagraphElement;
"param": HTMLParamElement;
"picture": HTMLPictureElement;
"pre": HTMLPreElement;
"progress": HTMLProgressElement;
"q": HTMLQuoteElement;
"rp": HTMLElement;
"rt": HTMLElement;
"ruby": HTMLElement;
"s": HTMLElement;
"samp": HTMLElement;
"script": HTMLScriptElement;
"section": HTMLElement;
"select": HTMLSelectElement;
"slot": HTMLSlotElement;
"small": HTMLElement;
"source": HTMLSourceElement;
"span": HTMLSpanElement;
"strong": HTMLElement;
"style": HTMLStyleElement;
"sub": HTMLElement;
"summary": HTMLElement;
"sup": HTMLElement;
"table": HTMLTableElement;
"tbody": HTMLTableSectionElement;
"td": HTMLTableDataCellElement;
"template": HTMLTemplateElement;
"textarea": HTMLTextAreaElement;
"tfoot": HTMLTableSectionElement;
"th": HTMLTableHeaderCellElement;
"thead": HTMLTableSectionElement;
"time": HTMLTimeElement;
"title": HTMLTitleElement;
"tr": HTMLTableRowElement;
"track": HTMLTrackElement;
"u": HTMLElement;
"ul": HTMLUListElement;
"var": HTMLElement;
"video": HTMLVideoElement;
"wbr": HTMLElement;
}
边栏推荐
- Principle and performance analysis of lepton lossless compression
- 美国费城发生“安全事故” 2名警察遭枪杀
- openGauss数据库源码解析系列文章—— 密态等值查询技术详解(下)
- Countermeasures of enterprise supply chain management system in UCA Era
- Don't be unconvinced. Mobile phone function upgrade is strong
- be careful! Software supply chain security challenges continue to escalate
- Assembly language
- R language uses the multinom function of NNET package to build an unordered multi classification logistic regression model, and uses the coef function to obtain the log odds ratio corresponding to eac
- There is a powerful and good-looking language bird editor, which is better than typora and developed by Alibaba
- Time to calculate cron expression based on cronsequencegenerator
猜你喜欢
超级哇塞的快排,你值得学会!
World Environment Day | Chow Tai Fook serves wholeheartedly to promote carbon reduction and environmental protection
魅族新任董事長沈子瑜:創始人黃章先生將作為魅族科技產品戰略顧問
分享 20 个稀奇古怪的 JS 表达式,看看你能答对多少
Pointer operation - C language
leetcode:881. lifeboat
Thymeleaf 模板的创建与使用
Introduction, installation, introduction and detailed introduction to postman!
Thymeleaf 使用后台自定义工具类处理文本
浅谈Dataset和Dataloader在加载数据时如何调用到__getitem__()函数
随机推荐
美国费城发生“安全事故” 2名警察遭枪杀
R语言使用ggplot2包的geom_histogram函数可视化直方图(histogram plot)
Show strength. In this way, the mobile phone will not be difficult to move forward
Fonctions communes de thymeleaf
R language ggplot2 visualization: visual line graph, using legend in theme function The position parameter defines the position of the legend
Sharing the 12 most commonly used regular expressions can solve most of your problems
Niuke: intercepting missiles
强联通分量
周大福践行「百周年承诺」,真诚服务推动绿色环保
微帧科技荣获全球云计算大会“云鼎奖”!
Redis如何实现多可用区?
Implement a blog system -- using template engine technology
不相交集
R语言ggplot2可视化:使用ggplot2可视化散点图、使用labs参数自定义X轴的轴标签文本(customize X axis labels)
Mysql database installation tutorial under Linux
【学习笔记】图的连通性与回路
04_ Use of solrj7.3 of solr7.3
Lepton 无损压缩原理及性能分析
C语言中限定符的作用
乌卡时代下,企业供应链管理体系的应对策略