亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

jQuery:查看API

發布時間:2020-06-02 07:38:23 來源:網絡 閱讀:943 作者:ztfriend 欄目:web開發

jQuery的api官方網址是:http://api.jquery.com,這個應當是最權威的(我推薦看這個)

如果網速,或者英語水平不夠給力,可以搜索中文網頁,

例如我搜到這個頁面:http://www.css88.com/jqueryapi 大概就是翻譯了jquery官方文檔

文檔畢竟是文檔,實際應用時還是要眼見為實。

今天拿本機的開發環境(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)選擇器執行了jQuery.fn,執行過程中添加了下列對象元素

        |--[object] 0
        |--[object] context
        |--[object] prevObject

其中context指向的是DOM對象,可用于通過jQuery.fn使用DOM原生方法。

想進一步研究對象內容,可訪問http://idata.blog.51cto.com/4581576/1103835下載我的javascipt工具包,到本文完成之時(2013/1/21),版本為V1.0.3。

 

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

永胜县| 南京市| 富顺县| 马鞍山市| 蒙山县| 织金县| 石阡县| 洛隆县| 临颍县| 台北县| 台南市| 年辖:市辖区| 宁安市| 秦安县| 高青县| 务川| 双鸭山市| 武功县| 黎城县| 内江市| 姚安县| 富川| 红桥区| 锡林浩特市| 剑河县| 万全县| 资中县| 蓬溪县| 宁强县| 灵山县| 丰顺县| 年辖:市辖区| 东乡县| 黄浦区| 白沙| 化德县| 宕昌县| 江津市| 江山市| 石柱| 龙岩市|