小编Mar*_*ark的帖子

如何在 TypeScript div 中添加 tabIndex = '0'?

我正在使用 Typescript 和 NextJS,我想添加tabIndex = '0'其中一个 div。但出现此错误Type 'string' is not assignable to type 'number'...如何实现此目的?

\n
\xe2\x80\xb9div className= 'container' tabIndex = '0'>\n
Run Code Online (Sandbox Code Playgroud)\n

html javascript frontend typescript ecmascript-6

6
推荐指数
1
解决办法
3470
查看次数

标签 统计

ecmascript-6 ×1

frontend ×1

html ×1

javascript ×1

typescript ×1