- $()
- $.camelCase v1.0+
- $.contains v1.0+
- $.each
- $.extend
- $.fn
- $.grep v1.0+
- $.inArray v1.0+
- $.isArray
- $.isFunction
- $.isPlainObject v1.0+
- $.isWindow v1.0+
- $.map
- $.parseJSON v1.0+
- $.trim v1.0+
- $.type v1.0+
- add
- addClass
- after
- append
- appendTo
- attr
- before
- children
- clone v1.0+
- closest
- concat
- contents v1.0+
- css
- data
- each
- empty
- eq
- filter
- find
- first
- forEach
- get
- has v1.0+
- hasClass
- height
- hide
- html
- index
- indexOf
- insertAfter
- insertBefore
- is
- last
- map
- next
- not
- offset
- offsetParent v1.0+
- parent
- parents
- pluck
- position v1.0+
- prepend
- prependTo
- prev
- prop v1.0+
- push
- ready
- reduce
- remove
- removeAttr
- removeClass
- replaceWith
- scrollLeft v1.1+
- scrollTop v1.0+
- show
- siblings
- size
- slice
- text
- toggle
- toggleClass
- unwrap
- val
- width
- wrap
- wrapAll
- wrapInner
- Detect module
- $.Event
- $.proxy v1.0+
- bind
- delegate
- die
- event.isDefaultPrevented v1.1+
- event.isImmediatePropagationStopped v1.1+
- event.isPropagationStopped v1.1+
- live
- off
- on
- one
- trigger
- triggerHandler
- unbind
- undelegate
- $.ajax
- $.ajaxJSONP
- $.ajaxSettings
- $.get
- $.getJSON
- $.param
- $.post
- load
- serialize
- serializeArray
- submit
- $.fx
- animate
- Touch events
- 前言
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
$.each
$.each(collection, function(index, item){ ... }) ⇒ collection
遍历数组元素或以key-value值对方式遍历对象。回调函数返回 false
时停止遍历。
$.each(['a', 'b', 'c'], function(index, item){
console.log('item %d is: %s', index, item)
})
var hash = { name: 'zepto.js', size: 'micro' }
$.each(hash, function(key, value){
console.log('%s: %s', key, value)
})
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论