给input的button按钮的点击事件添加背景颜色变化

1. $("#aa").style.backgroundColor = 'red'这种写法报错

2. $("#aa").css("background-color","gray");这种写法可以实现背景色的改变

相关文章:

  • 2021-09-19
  • 2021-12-21
  • 2021-08-05
  • 2021-12-12
  • 2021-11-04
  • 2022-01-14
  • 2021-12-27
猜你喜欢
  • 2021-11-23
  • 2022-01-20
  • 2021-12-19
  • 2021-05-18
  • 2021-04-21
相关资源
相似解决方案