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

?? ??? ??
jQuery 1.4.4 速查表 核心 jQuery核心函數(shù) jQuery(expression jQuery(html jQuery(html jQuery(elements) jQuery() jQuery(callback) jQuery對象訪問 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] 隊列機制 queue(name) queue(name queue(name dequeue(name) clearQueue([queueName]) 插件機制 jQuery.extend(object) jQuery.fn.extend(object) 多庫共存 jQuery.noConflict() jQuery.noConflict(extreme) 選擇器 基本 #id element .class * selector1 層級 ancestor descendant parent > child prev + next prev ~ 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(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() 文檔處理 內部插入 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]) 復制 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 滑動 slideDown(speed slideUp(speed slideToggle(speed 淡入淡出 fadeIn(speed fadeOut(speed fadeTo(speed fadeToggle(speed 自定義 animate(params animate(params stop([clearQueue] delay(duration 設置 jQuery.fx.off jQuery.fx.interval AJAX AJAX請求 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() 工具 瀏覽器及特性檢測 jQuery.support jQuery.browser jQuery.browser.version jQuery.boxModel 數(shù)組和對象操作 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 測試操作 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) 關于 關于jQuery API 1.4.4中文版 關于jQuery 1.4.1中文版 關于jQuery 1.3 版翻譯 關于jQuery 1.2 版翻譯 提交bug及獲取更新
??

返回值:jQueryanimate(params, options)

概述

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

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

而每個屬性的值表示這個樣式屬性到多少時動畫結束。如果是一個數(shù)值,樣式屬性就會從當前的值漸變到指定的值。如果使用的是“hide”、“show”或“toggle”這樣的字符串值,則會為該屬性調用默認的動畫形式。

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

參數(shù)

paramsOptions

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

optionsOptions

一組包含動畫選項的值的集合。

選項

durationString,Number

(默認值: "normal") 三種預定速度之一的字符串("slow", "normal", or "fast")或表示動畫時長的毫秒數(shù)值(如:1000)

easingString

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

completeFunction

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

stepCallback

queueBoolean

(默認值: true) 設定為false將使此動畫不進入動畫隊列 (jQuery 1.2中新增)

示例

描述:

第一個按鈕按了之后展示了不在隊列中的動畫。在div擴展到90%的同時也在增加字體,一旦字體改變完畢后,邊框的動畫才開始。

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);
});

描述:

第二個按鈕按了之后就是一個傳統(tǒ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);
});

描述:

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

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

描述:

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

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

描述:

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

jQuery 代碼:
$("p").animate({
   opacity: 'show'
 }, { duration: "slow", easing: "easein" });
?? ??: ?? ??: