目录搜索
jQuery 1.4.4 速查表核心jQuery核心函数jQuery(expressionjQuery(htmljQuery(htmljQuery(elements)jQuery()jQuery(callback)jQuery对象访问each(callback)size()lengthcontextget()get(index)index([subject])selector数据缓存data([name])data(namedata(obj)removeData(name)jQuery.data(elementjQuery.data([element]队列机制queue(name)queue(namequeue(namedequeue(name)clearQueue([queueName])插件机制jQuery.extend(object)jQuery.fn.extend(object)多库共存jQuery.noConflict()jQuery.noConflict(extreme)选择器基本#idelement.class*selector1层级ancestor descendantparent > childprev + nextprev ~ siblings基本(过滤器):first:last:not:even:odd:eq:gt:lt:header:animated内容(过滤器):contains:empty:has:parent可见性(过滤器):hidden:visible属性[attribute][attribute=value][attribute!=value][attribute^=value][attribute$=value][attribute*=value][selector1][selector2][selectorN]子元素:first-child:last-child:nth-child:only-child表单:input:text:password:radio:checkbox:reset:submit:image:button:file:hidden表单对象属性:checked:disabled:enabled:selected属性属性attr(name)attr(properties)attr(keyattr(keyremoveAttr(name)CSS类addClass(class)addClass(function(indexremoveClass([class])removeClass(function(indextoggleClass(class)toggleClass(classtoggleClass(function(indexHTML代码html()html(val)html(function(index文本text()text(val)text(function(indexval()val(val)val(array)val(function(index筛选过滤eq(index)first()last()hasClass(class)filter(expr)filter(fn)is(expr)map(callback)has(expr)not(expr)slice(start查找children([expr])closest(exprfind(expr)next([expr])nextAll([expr])nextUntil([expr])offsetParent()parent([expr])parents([expr])parentsUntil([expr])prev([expr])prevAll([expr])prevUntil([expr])siblings([expr])串联add(exprandSelf()contents()end()文档处理内部插入append(content)append(function(indexappendTo(content)prepend(content)prepend(function(indexprependTo(content)外部插入after(content)after(function)before(content)before(function)insertAfter(content)insertBefore(content)包裹wrap(html)wrap(elem)wrap(fn)unwrap()wrapAll(html)wrapAll(elem)wrapInner(html)wrapInner(elem)wrapInner(fn)替换replaceWith(content)replaceAll(selector)删除empty()remove([expr])detach([expr])复制clone()clone(true)CSSCSScss(name)css(properties)css(namecss(name位置offset()offset(coordinates)position()scrollLeft()scrollLeft(val)scrollTop()scrollTop(val)尺寸height()height(val)width()width(val)innerHeight()innerWidth()outerHeight(options)outerWidth(options)事件页面载入ready(fn)事件处理bind(typeone(typetrigger(typetriggerHandler(typeunbind([type]事件委派live(typedie([type]delegate(selectorundelegate()事件切换hover(overtoggle(fn事件blur()blur(fn)change()change(fn)click()click(fn)dblclick()dblclick(fn)error()error(fn)focus()focus(fn)focusin(fn)focusout(fn)keydown()keydown(fn)keypress()keypress(fn)keyup()keyup(fn)load(fn)mousedown(fn)mousemove(fn)mouseout(fn)mouseover(fn)mouseup(fn)resize(fn)scroll(fn)select()select(fn)submit()submit(fn)unload(fn)效果基本show()show(speedhide()hide(speedtoggle()toggle(switch)toggle(speed滑动slideDown(speedslideUp(speedslideToggle(speed淡入淡出fadeIn(speedfadeOut(speedfadeTo(speedfadeToggle(speed自定义animate(paramsanimate(paramsstop([clearQueue]delay(duration设置jQuery.fx.offjQuery.fx.intervalAJAXAJAX请求jQuery.ajax([options])load(urljQuery.get(urljQuery.getJSON(urljQuery.getScript(urljQuery.post(urlAJAX事件ajaxComplete(callback)ajaxError(callback)ajaxSend(callback)ajaxStart(callback)ajaxStop(callback)ajaxSuccess(callback)其它jQuery.ajaxSetup([options])serialize()serializeArray()工具浏览器及特性检测jQuery.supportjQuery.browserjQuery.browser.versionjQuery.boxModel数组和对象操作jQuery.each(objectjQuery.extend([deep]jQuery.grep(arrayjQuery.inArray(valuejQuery.makeArray(obj)jQuery.toArray()jQuery.map(arrayjQuery.merge(firstjQuery.unique(array)jQuery.parseJSON(json)函数操作jQuery.noopjQuery.proxy(function测试操作jQuery.contains(containerjQuery.isArray(obj)jQuery.isFunction(obj)jQuery.isEmptyObject(obj)jQuery.isPlainObject(obj)jQuery.isWindow(obj)jQuery.type(obj)字符串操作jQuery.trim(str)URL解析jQuery.param(obj插件编写jQuery.error(message)关于关于jQuery API 1.4.4中文版关于jQuery 1.4.1中文版关于jQuery 1.3 版翻译关于jQuery 1.2 版翻译提交bug及获取更新
文字

返回值:jQueryhtml(val)

概述

设置每一个匹配元素的html内容。这个函数不能用于XML文档。但可以用于XHTML文档。

参数

valString

用于设定HTML内容的值

上一篇:下一篇: