扫二维码与项目经理沟通
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流
jQuery的api官方网址是:http://api.jquery.com,这个应当是最权威的(我推荐看这个)
创新互联是专业的琼海网站建设公司,琼海接单;提供成都网站建设、网站设计,网页设计,网站设计,建网站,PHP网站建设等专业做网站服务;采用PHP框架,可快速的进行琼海网站开发网页制作和功能扩展;专业做搜索引擎喜爱的网站,专业的做网站团队,希望更多企业前来合作!如果网速,或者英语水平不够给力,可以搜索中文网页,
例如我搜到这个页面: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
另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流