摘要:
元素选择 $("input") id选择 $('#id') class选择 $('.id') 属性选择 $('[prop]')或者$('[prop=“value1”]')或者$('input[prop=“value1”]') 选择所有 $("*") 在选择器中的几种符号 1,(逗号) 2 (空格)
阅读全文
摘要:
一、find和空格,children和>及其它的区别 空格:$('parent childchild')表示获取parent下的所有的childchild节点(所有的子孙)。 等效成 ==$('parent').find('children') 获取子节点 offspring 获取所有子孙节点$('
阅读全文