我正在使用 Typescript 和 NextJS,我想添加tabIndex = '0'其中一个 div。但出现此错误Type 'string' is not assignable to type 'number'...如何实现此目的?
tabIndex = '0'
Type 'string' is not assignable to type 'number'
\xe2\x80\xb9div className= 'container' tabIndex = '0'>\n
html javascript frontend typescript ecmascript-6
ecmascript-6 ×1
frontend ×1
html ×1
javascript ×1
typescript ×1