亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

annuaire recherche
jQuery 1.4.4 速查表 核心 jQuery核心函數(shù) jQuery(expression jQuery(html jQuery(html jQuery(elements) jQuery() jQuery(callback) jQuery對(duì)象訪問 each(callback) size() length context get() get(index) index([subject]) selector 數(shù)據(jù)緩存 data([name]) data(name data(obj) removeData(name) jQuery.data(element jQuery.data([element] 隊(duì)列機(jī)制 queue(name) queue(name queue(name dequeue(name) clearQueue([queueName]) 插件機(jī)制 jQuery.extend(object) jQuery.fn.extend(object) 多庫(kù)共存 jQuery.noConflict() jQuery.noConflict(extreme) 選擇器 基本 #id element .class * selector1 層級(jí) ancestor descendant parent > child prev + next prev ~ siblings 基本(過濾器) :first :last :not :even :odd :eq :gt :lt :header :animated 內(nèi)容(過濾器) :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 表單對(duì)象屬性 :checked :disabled :enabled :selected 屬性 屬性 attr(name) attr(properties) attr(key attr(key removeAttr(name) CSS類 addClass(class) addClass(function(index removeClass([class]) removeClass(function(index toggleClass(class) toggleClass(class toggleClass(function(index HTML代碼 html() html(val) html(function(index 文本 text() text(val) text(function(index val() 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(expr find(expr) next([expr]) nextAll([expr]) nextUntil([expr]) offsetParent() parent([expr]) parents([expr]) parentsUntil([expr]) prev([expr]) prevAll([expr]) prevUntil([expr]) siblings([expr]) 串聯(lián) add(expr andSelf() contents() end() 文檔處理 內(nèi)部插入 append(content) append(function(index appendTo(content) prepend(content) prepend(function(index prependTo(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]) 復(fù)制 clone() clone(true) CSS CSS css(name) css(properties) css(name css(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(type one(type trigger(type triggerHandler(type unbind([type] 事件委派 live(type die([type] delegate(selector undelegate() 事件切換 hover(over toggle(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(speed hide() hide(speed toggle() toggle(switch) toggle(speed 滑動(dòng) slideDown(speed slideUp(speed slideToggle(speed 淡入淡出 fadeIn(speed fadeOut(speed fadeTo(speed fadeToggle(speed 自定義 animate(params animate(params stop([clearQueue] delay(duration 設(shè)置 jQuery.fx.off jQuery.fx.interval AJAX AJAX請(qǐng)求 jQuery.ajax([options]) load(url jQuery.get(url jQuery.getJSON(url jQuery.getScript(url jQuery.post(url AJAX事件 ajaxComplete(callback) ajaxError(callback) ajaxSend(callback) ajaxStart(callback) ajaxStop(callback) ajaxSuccess(callback) 其它 jQuery.ajaxSetup([options]) serialize() serializeArray() 工具 瀏覽器及特性檢測(cè) jQuery.support jQuery.browser jQuery.browser.version jQuery.boxModel 數(shù)組和對(duì)象操作 jQuery.each(object jQuery.extend([deep] jQuery.grep(array jQuery.inArray(value jQuery.makeArray(obj) jQuery.toArray() jQuery.map(array jQuery.merge(first jQuery.unique(array) jQuery.parseJSON(json) 函數(shù)操作 jQuery.noop jQuery.proxy(function 測(cè)試操作 jQuery.contains(container jQuery.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) 關(guān)于 關(guān)于jQuery API 1.4.4中文版 關(guān)于jQuery 1.4.1中文版 關(guān)于jQuery 1.3 版翻譯 關(guān)于jQuery 1.2 版翻譯 提交bug及獲取更新
personnages

返回值:jQueryanimate(params, options)

概述

用于創(chuàng)建自定義動(dòng)畫的函數(shù)。

這個(gè)函數(shù)的關(guān)鍵在于指定動(dòng)畫形式及結(jié)果樣式屬性對(duì)象。這個(gè)對(duì)象中每個(gè)屬性都表示一個(gè)可以變化的樣式屬性(如“height”、“top”或“opacity”)。注意:所有指定的屬性必須用駱駝形式,比如用marginLeft代替margin-left. 

而每個(gè)屬性的值表示這個(gè)樣式屬性到多少時(shí)動(dòng)畫結(jié)束。如果是一個(gè)數(shù)值,樣式屬性就會(huì)從當(dāng)前的值漸變到指定的值。如果使用的是“hide”、“show”或“toggle”這樣的字符串值,則會(huì)為該屬性調(diào)用默認(rèn)的動(dòng)畫形式。

在 jQuery 1.2 中,你可以使用 em 和 % 單位。另外,在 jQuery 1.2 中,你可以通過在屬性值前面指定 "<em>+=</em>" 或 "<em>-=</em>" 來讓元素做相對(duì)運(yùn)動(dòng)。

參數(shù)

paramsOptions

一組包含作為動(dòng)畫屬性和終值的樣式屬性和及其值的集合

optionsOptions

一組包含動(dòng)畫選項(xiàng)的值的集合。

選項(xiàng)

durationString,Number

(默認(rèn)值: "normal") 三種預(yù)定速度之一的字符串("slow", "normal", or "fast")或表示動(dòng)畫時(shí)長(zhǎng)的毫秒數(shù)值(如:1000)

easingString

(默認(rèn)值: "swing") 要使用的擦除效果的名稱(需要插件支持).默認(rèn)jQuery提供"linear" 和 "swing".

completeFunction

在動(dòng)畫完成時(shí)執(zhí)行的函數(shù)

stepCallback

queueBoolean

(默認(rèn)值: true) 設(shè)定為false將使此動(dòng)畫不進(jìn)入動(dòng)畫隊(duì)列 (jQuery 1.2中新增)

示例

描述:

第一個(gè)按鈕按了之后展示了不在隊(duì)列中的動(dòng)畫。在div擴(kuò)展到90%的同時(shí)也在增加字體,一旦字體改變完畢后,邊框的動(dòng)畫才開始。

HTML 代碼:
<button id="go1">? Animate Block1</button>
<button id="go2">? Animate Block2</button>
<div id="block1">Block1</div><div id="block2">Block2</div>
jQuery 代碼:
$("#go1").click(function(){
  $("#block1").animate( { width: "90%"}, { queue: false, duration: 5000 } )
     .animate( { fontSize: '10em' } , 1000 )
     .animate( { borderWidth: 5 }, 1000);
});

$("#go2").click(function(){
  $("#block2").animate( { width: "90%"}, 1000 )
     .animate( { fontSize: '10em' } , 1000 )
     .animate( { borderWidth: 5 }, 1000);
});

描述:

第二個(gè)按鈕按了之后就是一個(gè)傳統(tǒng)的鏈?zhǔn)絼?dòng)畫,即等前一個(gè)動(dòng)畫完成后,后一個(gè)動(dòng)畫才會(huì)開始.

HTML 代碼:
<button id="go1">? Animate Block1</button>
<button id="go2">? Animate Block2</button>
<div id="block1">Block1</div><div id="block2">Block2</div>
jQuery 代碼:
$("#go1").click(function(){
  $("#block1").animate( { width: "90%"}, { queue: false, duration: 5000 } )
     .animate( { fontSize: '10em' } , 1000 )
     .animate( { borderWidth: 5 }, 1000);
});

$("#go2").click(function(){
  $("#block2").animate( { width: "90%"}, 1000 )
     .animate( { fontSize: '10em' } , 1000 )
     .animate( { borderWidth: 5 }, 1000);
});

描述:

用600毫秒切換段落的高度和透明度

jQuery 代碼:
$("p").animate({
   height: 'toggle', opacity: 'toggle'
 }, { duration: "slow" });

描述:

用500毫秒將段落移到left為50的地方并且完全清晰顯示出來(透明度為1)

jQuery 代碼:
$("p").animate({
   left: 50, opacity: 'show'
 }, { duration: 500 });

描述:

一個(gè)使用“easein”函數(shù)提供不同動(dòng)畫樣式的例子。只有使用了插件來提供這個(gè)“easein”函數(shù),這個(gè)參數(shù)才起作用。

jQuery 代碼:
$("p").animate({
   opacity: 'show'
 }, { duration: "slow", easing: "easein" });
Article précédent: Article suivant: