根底

jQuery 插件机制

jQuery.fn.extend(object)//$(.div).jQuery.extend(object)//$().

根底语法

$(select).action()

根底选择器

$("*")   //All Select("*")$(".class")   //Class Selector(".class")$("element")  //Element Selector("element")$("#id")  //ID Selector("#id")$("selector1,selector2,selectorN") //Multipe Selector("selector1,selector2,selector

属性选择器

$("[attribute='value']") //Has Attribute Selector[name='value']$("[attribute*='value']") //Attribute Contains With Selector [name*='value']$("[attribute|='value']") //Attribute Contains Prefix Selector [name|='value']$("[attribute^='value") //Attribute Contains Starts With Select[name^='value']$("[attribute$='value']") //Attribute Contains Ends With Selector[name$='value']$("[attribute!='value']") //Attribute Not Equal Select [name!='value']$("[attribute~='value']") //Attribute Contains Word Selector[name~='value'] 空格蕴含value$("[attribute1][attribute2][attributeN]") //Multipe Attribute Select [name="value"][name2="vlue2"]