- 博客(0)
- 资源 (12)
- 收藏
- 关注
jQueryAPI_1.7.1_CN
jQuery 核心函数
jQuery([sel,[context]])
jQuery(html,[ownerDoc])
jQuery(callback)
jQuery.holdReady(hold)1.6+
jQuery 对象访问
each(callback)
size()
length
selector
context
get([index])
index([selector|element])
数据缓存
data([key],[value])
removeData([name|list])1.7*
$.data(element,[key],[value])
队列控制
queue(element,[queueName])
dequeue([queueName])
clearQueue([queueName])
插件机制
jQuery.fn.extend(object)
jQuery.extend(object)
多库共存
jQuery.noConflict([ex])
属性
属性
attr(name|pro|key,val|fn)
removeAttr(name)
prop(name|pro|key,val|fn)1.6+
removeProp(name)1.6+
CSS 类
addClass(class|fn)
removeClass([class|fn])
toggleClass(class|fn[,sw])
HTML代码/文本/值
html([val|fn])
text([val|fn])
val([val|fn|arr])
CSS
CSS
css(name|pro|[,val|fn])
位置
offset([coordinates])
position()
scrollTop([val])
scrollLeft([val])
尺寸
heigh([val|fn])
width([val|fn])
innerHeight()
innerWidth()
outerHeight([soptions])
outerWidth([options])
选择器
基本
#id
element
.class
*
selector1,selector2,selectorN
层级
ancestor descendant
parent > child
prev + next
prev ~ siblings
基本
:first
:last
:not(selector)
:even
:odd
:eq(index)
:gt(index)
:lt(index)
:header
:animated
:focus1.6+
内容
:contains(text)
:empty
:has(selector)
:parent
可见性
2013-07-25
w3school 5.0;
w3school 5.0;领先的 Web 技术教程 - 全部免费
在w3school,你可以找到你所需要的所有的网站建设教程。
从基础的HTML到XHTML,乃至进阶的XML、SQL、数据库、多媒体和WAP。
从左侧的菜单选择你需要的教程!
2013-07-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人