啊嘎哇在线工具箱
首页
开发文档
开发教程
导航
首页
开发文档
开发教程
首页
开发文档
jquery1.10.3在线手册
jQuery.toArray()
"jquery1.10.3在线手册"的目录
jQuery([selector,[context]])
jQuery(html,[ownerDocument])
jQuery(callback)
jQuery.holdReady(hold)
each(callback)
size()
length
selector
context
get([index])
index([selector|element])
data([key],[value])
removeData([name|list])
jQuery.data(element,[key],[value])
queue(element,[queueName])
dequeue([queueName])
clearQueue([queueName])
jQuery.fn.extend(object)
jQuery.extend(object)
jQuery.noConflict([extreme])
attr(name|properties|key,value|fn)
removeAttr(name)
prop(name|properties|key,value|fn)
removeProp(name)
addClass(class|fn)
removeClass([class|fn])
toggleClass(class|fn[,sw])
html([val|fn])
text([val|fn])
val([val|fn|arr])
css(name|pro|[,val|fn])
jQuery.cssHooks
offset([coordinates])
position()
scrollTop([val])
scrollLeft([val])
height([val|fn])
width([val|fn])
innerHeight()
innerWidth()
outerHeight([options])
outerWidth([options])
#id
element
.class
*
selector1,selector2,selectorN
ancestor descendant
parent > child
prev + next
prev ~ siblings
:first
:not(selector)
:even
:odd
:eq(index)
:gt(index)
:lang(language)
:last()
:lt(index)
:header
:animated
:focus
:root
:target
:contains(text)
:empty
:has(selector)
:parent
:hidden
:visible
[attribute]
[attribute=value]
[attribute!=value]
[attribute^=value]
[attribute$=value]
[attribute*=value]
[selector1][selector2][selectorN]
:first-child
:first-of-type
:last-child
:last-of-type
:nth-child
:nth-last-child(n|even|odd|formula)
:nth-last-of-type(n|even|odd|formula)
:nth-of-type(n|even|odd|formula)
:only-child
:only-of-type
:input
:text
:password
:radio
:checkbox
:submit
:image
:reset
:button
:file
:enabled
:disabled
:checked
:selected
append(content|fn)
appendTo(content)
prepend(content)
prependTo(content)
after(content|fn)
before(content|fn)
insertAfter(content)
insertBefore(content)
wrap(html|element|fn)
unwrap()
wrapAll(html|ele)
wrapInner(htm|element|fnl)
replaceWith(content|fn)
replaceAll(selector)
empty()
remove([expr])
detach([expr])
clone([Even[,deepEven]])
eq(index|-index)
first()
last()
hasClass(class)
filter(expr|obj|ele|fn)
is(expr|obj|ele|fn)
map(callback)
has(expr|ele)
not(expr|ele|fn)
slice(start, [end])
children([expr])
closest(expr,[context]|object|element)
find(expr|obj|ele)
next([expr])
nextAll([expr])
nextUntil([exp|ele][,fil])
offsetParent()
parent([expr])
parents([expr])
parentsUntil([expr|element][,filter])
prev([expr])
prevAll([expr])
prevUntil([exp|ele][,fil])
siblings([expr])
add(expr|ele|html|obj[,con])
andSelf()
addBack()
contents()
end()
ready(fn)
on(events,[selector],[data],fn)
off(events,[selector],[fn])
bind(type,[data],fn)
one(type,[data],fn)
trigger(type,[data])
triggerHandler(type, [data])
unbind(type,[data|fn]])
live(type, [data], fn)
die(type, [fn])
delegate(selector,[type],[data],fn)
undelegate([selector,[type],fn])
hover([over,]out)
toggle([speed],[easing],[fn])
blur([[data],fn])
change([[data],fn])
click([[data],fn])
dblclick([[data],fn])
error([[data],fn])
focus([[data],fn])
focusin([data],fn)
focusout([data],fn)
keydown([[data],fn])
keypress([[data],fn])
keyup([[data],fn])
mousedown([[data],fn])
mouseenter([[data],fn])
mouseleave([[data],fn])
mousemove([[data],fn])
mouseout([[data],fn])
mouseover([[data],fn])
mouseup([[data],fn])
resize([[data],fn])
scroll([[data],fn])
select([[data],fn])
submit([[data],fn])
unload([[data],fn])
show([speed,[easing],[fn]])
hide([speed,[easing],[fn]])
slideDown([speed],[easing],[fn])
slideUp([speed,[easing],[fn]])
slideToggle([speed],[easing],[fn])
fadeIn([speed],[easing],[fn])
fadeOut([speed],[easing],[fn])
fadeTo([[speed],opacity,[easing],[fn]])
fadeToggle([speed,[easing],[fn]])
animate(params,[speed],[easing],[fn])
stop([clearQueue],[jumpToEnd])
delay(duration,[queueName])
finish( [queue ] )
jQuery.fx.off
jQuery.fx.interval
jQuery.ajax(url,[settings])
load(url, [data], [callback])
jQuery.get(url, [data], [callback], [type])
jQuery.getJSON(url, [data], [callback])
jQuery.getScript(url, [callback])
jQuery.post(url, [data], [callback], [type])
ajaxComplete(callback)
ajaxError(callback)
ajaxSend(callback)
ajaxStart(callback)
ajaxStop(callback)
ajaxSuccess(callback)
jQuery.ajaxPrefilter( [dataTypes] , handler(options, originalOptions, jqXHR) )
jQuery.ajaxSetup([options])
serialize()
serializeArray()
jQuery.support
jQuery.browser
jQuery.browser.version
jQuery.boxModel
jQuery.each(object, [callback])
jQuery.extend([deep], target, object1, [objectN])
jQuery.grep(array, callback, [invert])
jQuery.sub()
jQuery.when(deferreds)
jQuery.makeArray(obj)
jQuery.map(arr|obj,callback)
jQuery.inArray(value,array,[fromIndex])
jQuery.toArray()
jQuery.merge(first,second)
jQuery.unique(array)
jQuery.parseJSON(json)
jQuery.parseXML(data)
jQuery.noop
jQuery.proxy(function,context)
jQuery.contains(container,contained)
jQuery.type(obj)
jQuery.isArray(obj)
jQuery.isFunction(obj)
jQuery.isEmptyObject(obj)
jQuery.isPlainObject(obj)
jQuery.isWindow(obj)
jQuery.isNumeric(value)
jQuery.trim(str)
jQuery.param(obj,[traditional])
jQuery.error(message)
$.fn.jquery
event.currentTarget
event.data
event.delegateTarget
event.isDefaultPrevented()
event.isImmediatePropagationStopped()
event.isPropagationStopped()
event.namespace
event.pageX
event.pageY
event.preventDefault()
event.relatedTarget
event.result
event.stopImmediatePropagation()
event.stopPropagation()
event.target
event.timeStamp
event.type
event.which
deferred.done(doneCallbacks[,doneCallbacks])
deferred.fail(failCallbacks[,failCallbacks])
deferred.isRejected()
deferred.isResolved()
deferred.reject(args)
deferred.rejectWith(context,[args])
deferred.resolve(args)
deferred.resolveWith(context,[args])
deferred.then(doneCallbacks,failCallbacks[, progressCallbacks])
deferred.promise([type],[target])
deferred.pipe([doneFilter],[failFilter],[progressFilter])
deferred.always(alwaysCallbacks,[alwaysCallbacks])
deferred.notify(args)
deferred.notifyWith(context,[args])
deferred.progress(progressCallbacks)
deferred.state()
callbacks.add(callbacks)
callbacks.disable()
callbacks.empty()
callbacks.fire(arguments)
callbacks.fired()
callbacks.fireWith([context][,args])
callbacks.has(callback)
callbacks.lock()
callbacks.locked()
callbacks.remove(callbacks)
jQuery.callbacks(flags)
jquery1.10.3在线手册 jQuery.toArray()
2022-08-31
开发文档
jquery1.10.3在线手册
jquery
22
℃
返回值:Number
jQuery.toArray()
V1.4
概述
把jQuery集合中所有DOM元素恢复成一个数组。
示例
描述:
得到所有li的元素数组
jQuery 代码:
alert($('li').toArray());
结果:
[<li id="foo">, <li id="bar">]
上一节:
jQuery.inArray(value,array,[fromIndex])
下一节:
jQuery.merge(first,second)