jQuery 中文版文档:http://www.css88.com/jqapi-1.9/category/ajax/
jQuery入门,必须掌握以下的API,平时工作中经常会用到。未列出的API,在掌握了已列出的API之后,再做了解及学习。Ajax:
.get().getJSON().post().load().serialize()属性
.attr().html().removeAttr().val()CSS
.addClass().hasClass().removeClass().css().height().position().width()数据
.data().removeData()效果:
.fadeIn().fadeOut().hide().show().slideDown().slideUp().toggle()事件:
.on().off().one().submit().trigger()event.preventDefault()event.stopPropagation()event.target.click().change().blur().focus()操作:
.append().appendTo().empty().html().prepend().prependTo().remove().text()杂项:
.each().size()选择器:
Attribute Equals Selector [name="value"]:checkedChild Selector (“parent > child”)Class Selector (“.class”):disabled SelectorHas Attribute Selector [name]:hidden SelectorID Selector (“#id”)遍历:
.find().each().end().parent().parents().siblings()工具集:
jQuery.parseJSON()jQuery.grep()jQuery.inArray()jQuery.isArray()jQuery.isEmptyObject()jQuery.isFunction()jQuery.isNumeric()jQuery.extend()jQuery.merge()转载于:https://www.cnblogs.com/zsmynl/p/3548270.html