Javascript 如何在jsx中使用tabIndex?
根据react文档,这应该是可行的Javascript 如何在jsx中使用tabIndex?,javascript,html,reactjs,jsx,tabindex,Javascript,Html,Reactjs,Jsx,Tabindex,根据react文档,这应该是可行的 但当我尝试这个时,它不起作用 我的输入现在实际上被跳过了 我做错了什么 <input tabIndex='0'/> <input tabIndex='1'/> <input tabIndex='2'/> 您已经键入了两次tabIndex,但没有n,它应该是: <CustomRadio tabIndex='0'/> <CustomCheckbox tabIndex='1'/> <input t
但当我尝试这个时,它不起作用
我的输入现在实际上被跳过了
我做错了什么
<input
tabIndex='0'/>
<input
tabIndex='1'/>
<input
tabIndex='2'/>
您已经键入了两次tabIndex,但没有n,它应该是:
<CustomRadio
tabIndex='0'/>
<CustomCheckbox
tabIndex='1'/>
<input
tabIndex='2'/>
我认为您可能还需要将这些道具传递到组件中,传递到底层元素您需要使用正确的拼写,您对tabIndex使用了错误的拼写。它应该是tabIndex而不是tabIdexOh抱歉,我的真实代码中确实有正确的拼写。