jQuery的api官方網(wǎng)址是:http://api.jquery.com,這個應(yīng)當是最權(quán)威的(我推薦看這個)
創(chuàng)新互聯(lián)是專業(yè)的瓊海網(wǎng)站建設(shè)公司,瓊海接單;提供成都網(wǎng)站建設(shè)、網(wǎng)站設(shè)計,網(wǎng)頁設(shè)計,網(wǎng)站設(shè)計,建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進行瓊海網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團隊,希望更多企業(yè)前來合作!如果網(wǎng)速,或者英語水平不夠給力,可以搜索中文網(wǎng)頁,
例如我搜到這個頁面:http://www.css88.com/jqueryapi 大概就是翻譯了jquery官方文檔
今天拿本機的開發(fā)環(huán)境(ie/firefox/safari/chrome)做了個實測(jQuery1.9.0),記錄如下:
1)jQuery對象的方法在各瀏覽器中是一致的
[Object] window.jQuery
|--[boolean] isReady
|--[function] _data
|--[function] _queueHooks
|--[function] _removeData
|--[function] acceptData
|--[function] access
|--[function] ajax
|--[function] ajaxPrefilter
|--[function] ajaxSetup
|--[function] ajaxTransport
|--[function] Animation
|--[function] attr
|--[function] buildFragment
|--[function] Callbacks
|--[function] camelCase
|--[function] cleanData
|--[function] clone
|--[function] contains
|--[function] css
|--[function] data
|--[function] Deferred
|--[function] dequeue
|--[function] dir
|--[function] each
|--[function] error
|--[function] Event
|--[function] extend
|--[function] filter
|--[function] find
|--[function] fx
|--[function] get
|--[function] getJSON
|--[function] getScript
|--[function] globalEval
|--[function] grep
|--[function] hasData
|--[function] holdReady
|--[function] inArray
|--[function] isArray
|--[function] isEmptyObject
|--[function] isFunction
|--[function] isNumeric
|--[function] isPlainObject
|--[function] isWindow
|--[function] isXMLDoc
|--[function] makeArray
|--[function] map
|--[function] merge
|--[function] noConflict
|--[function] nodeName
|--[function] noop
|--[function] now
|--[function] param
|--[function] parseHTML
|--[function] parseJSON
|--[function] parseXML
|--[function] post
|--[function] prop
|--[function] proxy
|--[function] queue
|--[function] ready
|--[function] removeAttr
|--[function] removeData
|--[function] removeEvent
|--[function] sibling
|--[function] speed
|--[function] style
|--[function] swap
|--[function] text
|--[function] trim
|--[function] Tween
|--[function] type
|--[function] unique
|--[function] when
|--[number] active
|--[number] guid
|--[number] readyWait
|--[object] ajaxSettings
|--[object] attrHooks
|--[object] cache
|--[object] cssHooks
|--[object] cssNumber
|--[object] cssProps
|--[object] easing
|--[object] etag
|--[object] event
|--[object] expr
|--[object] fn
|--[object] lastModified
|--[object] noData
|--[object] offset
|--[object] propFix
|--[object] propHooks
|--[object] support
|--[object] timers
|--[object] valHooks
|--[string] expando
2)選擇器返回的對象不是jQuery,而是jQuery.fn(仍是略有差異參見下一條)
[Object] window.jQuery('body')
|--[function] add
|--[function] addBack
|--[function] addClass
|--[function] after
|--[function] ajaxComplete
|--[function] ajaxError
|--[function] ajaxSend
|--[function] ajaxStart
|--[function] ajaxStop
|--[function] ajaxSuccess
|--[function] andSelf
|--[function] animate
|--[function] append
|--[function] appendTo
|--[function] attr
|--[function] before
|--[function] bind
|--[function] blur
|--[function] change
|--[function] children
|--[function] clearQueue
|--[function] click
|--[function] clone
|--[function] closest
|--[function] constructor
|--[function] contents
|--[function] contextmenu
|--[function] css
|--[function] data
|--[function] dblclick
|--[function] delay
|--[function] delegate
|--[function] dequeue
|--[function] detach
|--[function] domManip
|--[function] each
|--[function] empty
|--[function] end
|--[function] eq
|--[function] error
|--[function] extend
|--[function] fadeIn
|--[function] fadeOut
|--[function] fadeTo
|--[function] fadeToggle
|--[function] filter
|--[function] find
|--[function] finish
|--[function] first
|--[function] focus
|--[function] focusin
|--[function] focusout
|--[function] get
|--[function] has
|--[function] hasClass
|--[function] height
|--[function] hide
|--[function] hover
|--[function] html
|--[function] index
|--[function] init
|--[function] innerHeight
|--[function] innerWidth
|--[function] insertAfter
|--[function] insertBefore
|--[function] is
|--[function] keydown
|--[function] keypress
|--[function] keyup
|--[function] last
|--[function] load
|--[function] map
|--[function] mousedown
|--[function] mouseenter
|--[function] mouseleave
|--[function] mousemove
|--[function] mouseout
|--[function] mouseover
|--[function] mouseup
|--[function] next
|--[function] nextAll
|--[function] nextUntil
|--[function] not
|--[function] off
|--[function] offset
|--[function] offsetParent
|--[function] on
|--[function] one
|--[function] outerHeight
|--[function] outerWidth
|--[function] parent
|--[function] parents
|--[function] parentsUntil
|--[function] position
|--[function] prepend
|--[function] prependTo
|--[function] prev
|--[function] prevAll
|--[function] prevUntil
|--[function] promise
|--[function] prop
|--[function] push
|--[function] pushStack
|--[function] queue
|--[function] ready
|--[function] remove
|--[function] removeAttr
|--[function] removeClass
|--[function] removeData
|--[function] removeProp
|--[function] replaceAll
|--[function] replaceWith
|--[function] resize
|--[function] scroll
|--[function] scrollLeft
|--[function] scrollTop
|--[function] select
|--[function] serialize
|--[function] serializeArray
|--[function] show
|--[function] siblings
|--[function] size
|--[function] slice
|--[function] slideDown
|--[function] slideToggle
|--[function] slideUp
|--[function] sort
|--[function] splice
|--[function] stop
|--[function] submit
|--[function] text
|--[function] toArray
|--[function] toggle
|--[function] toggleClass
|--[function] trigger
|--[function] triggerHandler
|--[function] unbind
|--[function] undelegate
|--[function] unload
|--[function] unwrap
|--[function] val
|--[function] width
|--[function] wrap
|--[function] wrapAll
|--[function] wrapInner
|--[number] length
|--[object] 0
|--[object] context
|--[object] prevObject
|--[string] jquery
|--[string] selector
3)選擇器執(zhí)行了jQuery.fn,執(zhí)行過程中添加了下列對象元素
|--[object] 0
|--[object] context
|--[object] prevObject
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。