久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      jquery怎么實(shí)現(xiàn)點(diǎn)擊按鈕消失

      實(shí)現(xiàn)方法:1、用click()給按鈕元素綁定點(diǎn)擊事件,并設(shè)置處理函數(shù),語(yǔ)法“$("button").click(function(){…});”;2、在處理函數(shù)中,用hide()隱藏該按鈕元素,語(yǔ)法“$(this).hide();”。

      jquery怎么實(shí)現(xiàn)點(diǎn)擊按鈕消失

      本教程操作環(huán)境:windows7系統(tǒng)、jquery1.10.2版本、Dell G3電腦。

      jquery實(shí)現(xiàn)點(diǎn)擊按鈕消失的方法:

      實(shí)現(xiàn)方法:

      • 用click()給按鈕元素綁定點(diǎn)擊事件,并設(shè)置處理函數(shù)

      • 在處理函數(shù)中,用hide()隱藏該按鈕元素

      實(shí)現(xiàn)代碼:

      <!DOCTYPE html> <html> 	<head> 		<meta charset="utf-8" /> 		<script src="js/jquery-1.10.2.min.js"></script> 		<script type="text/javascript"> 			$(document).ready(function() { 				$("button").click(function() { 					$(this).hide(); 				}); 			}); 		</script> 	</head> 	<body> 		<button>點(diǎn)擊按鈕,點(diǎn)擊后消失</button> 	</body> </html>

      jquery怎么實(shí)現(xiàn)點(diǎn)擊按鈕消失

      hide()n內(nèi)可以出入表示秒數(shù)的數(shù)字,規(guī)定隱藏效果的速度。

      $(this).hide(1000);

      jquery怎么實(shí)現(xiàn)點(diǎn)擊按鈕消失

      說(shuō)明:

      hide() 方法隱藏被選元素

      語(yǔ)法:

      $(selector).hide(speed,easing,callback)
        <p id="vfaef"><kbd id="vfaef"></kbd></p>

          參數(shù) 描述
          speed 可選。規(guī)定隱藏效果的速度。

          可能的值:

          • 毫秒
          • "slow"
          • "fast"
          easing 可選。規(guī)定在動(dòng)畫(huà)的不同點(diǎn)上元素的速度。默認(rèn)值為 "swing"。

          可能的值:

          • "swing" – 在開(kāi)頭/結(jié)尾移動(dòng)慢,在中間移動(dòng)快
          • "linear" – 勻速移動(dòng)

          提示:擴(kuò)展插件中提供

          贊(0)
          分享到: 更多 (0)

          
          
          <pre id="vfaef"><u id="vfaef"></u></pre>

            <thead id="vfaef"><input id="vfaef"></input></thead>