共计 902 个字符,预计需要花费 3 分钟才能阅读完成。
根底
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"] |
正文完
发表至: javascript
2021-04-03