$(":button") 表示匹配所有的按钮。
$("input:checked")表示匹配所有选中的被选中元素(复选框、单选框等,不包括select中的option)。 

$("div.container")中的'.'号表示class, $("div #msg")中的'#'表示id。那么$(":button") 中的':'表示类型(type),如$(":button") 表示类型为button的控件,$("input:checked")表示所有类型为选中的复选框元素。

相关文章:

  • 2022-12-23
  • 2021-12-16
  • 2021-08-31
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
猜你喜欢
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
相关资源
相似解决方案