[ attribute |= value ] $("[title|='Tomorrow']") 所有带有 title 属性且值等于 'Tomorrow' 或者以 'Tomorrow' 后跟连接符作为开头的字符串 [ attribute ^= value ] $("[title^='Tom']") 所有带有 title 属性且值以 "Tom" 开头的元素 [ attribute ~= value ] $("[title~='hello']") 所有带有 title 属性且值包含单词 "hello" 的元素 [ attribute* = value ] $("[title*='hello']") 所有带有 title 属性且值包含字符串 "hello" 的元素 [ name = value ][ name2 = value2 ] $( "input[id][name$='man']" ) 带有 id 属性,并且 name 属性以 man 结尾的输入框
  • #0

  •