jQuery

實(shí)例;事件;效能;移動(dòng);基礎(chǔ)

#fx

abbr.fractures 骨折;fractured骨折的;for eksempel (Dano-Norwegian=for example) (挪威語)例如;fixed 固定的

off

英[?f]? ?美[?:f ]??

prep.離開;從…落下;從…去掉;下班

adv.離開;距,離;被取消;下班

adj.不新鮮的;不能接受;不禮貌

n.起跑

v.殺死

jquery jQuery.fx.off 屬性 語法

作用:jQuery.fx.off 屬性用於對(duì)所有動(dòng)畫進(jìn)行全域停用或啟用。預(yù)設(shè)值是 false,它允許動(dòng)畫正常運(yùn)作。當(dāng)設(shè)定為 true 時(shí),將停用所有動(dòng)畫方法,這樣會(huì)將元素設(shè)為最後的狀態(tài),而不是顯示效果。如需簡化程式碼,可以使用 $.fx.off 來取代 jQuery.fx.off。

語法:jQuery.fx.off = true|false;

##參數(shù):

參數(shù)說明true? ??#規(guī)定應(yīng)該停用動(dòng)畫。? ? ?false? ??預(yù)設(shè)。規(guī)定應(yīng)該啟用動(dòng)畫。

jquery jQuery.fx.off 屬性 範(fàn)例

<!DOCTYPE html>
<html>
<head>
<script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js">
</script>
<script>
$(document).ready(function(){
  $("#disable").click(function(){
    jQuery.fx.off = true;
  });
  $("#enable").click(function(){
    jQuery.fx.off = false;
  });
  $("#toggle").click(function(){
    $("div").toggle("slow");
  });
});
</script>
</head>
<body>

<button id="disable">jQuery.fx.off = true ( 禁用 )</button>
<button id="enable">jQuery.fx.off = false ( 啟用 )</button>
<br><br>
<button id="toggle">切換動(dòng)畫</button>

<div style="background:#98bf21;height:100px;width:100px;margin:50px;">
</div>

</body>
</html>
執(zhí)行實(shí)例 ?

#點(diǎn)擊 "執(zhí)行實(shí)例" 按鈕查看線上實(shí)例

#
  • <var id="sryoo"><thead id="sryoo"><address id="sryoo"></address></thead></var>
      <cite id="sryoo"></cite>

      <dfn id="sryoo"><fieldset id="sryoo"><dl id="sryoo"></dl></fieldset></dfn>
    • <button id="sryoo"></button>

      <center id="sryoo"></center>
      <del id="sryoo"><option id="sryoo"><listing id="sryoo"></listing></option></del>