1、radio在没有name属性时是选择不了的,name属性起了对几个radio分组的作用,而checkbox没有此限制

2、The NAME attribute cannot be set at run time on elements dynamically created with the createElement method. To create an element with a name attribute, include the attribute and value when using the createElement method.
name属性不能在运行过程中进行变更,只能在创建时指定

相关文章:

  • 2022-01-18
  • 2021-12-18
  • 2022-02-15
  • 2021-11-16
  • 2022-02-02
  • 2021-08-19
  • 2021-10-16
  • 2021-08-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
相关资源
相似解决方案