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

有些事件很類似啊

original 2018-11-14 21:48:20 227
abstrait:<!DOCTYPE html><html><head> <title></title></head><body> <div> 鼠標(biāo)位置:<span></span><br> 窗口調(diào)整次數(shù):<b></b> </div>document:

<!DOCTYPE html>

<html>

<head>

<title></title>

</head>

<body>

<div>

鼠標(biāo)位置:<span></span><br>

窗口調(diào)整次數(shù):<b></b>

</div>

document:文檔

$(document).ready():文檔加載完成即靜態(tài)頁面加載完成后執(zhí)行

blur():失去焦點(diǎn)執(zhí)行

fofocus():獲取焦點(diǎn)后執(zhí)行

changge():當(dāng)元素內(nèi)容改變觸發(fā)事件

click();點(diǎn)擊事件

dblclock();雙擊事件

mouseover():當(dāng)鼠標(biāo)指針位于元素上方時(shí)觸發(fā)

mouseenter():當(dāng)鼠標(biāo)指針穿過指定元素是觸發(fā)

mousemove():鼠標(biāo)指針在指定元素移動(dòng)時(shí)

mouseleave():鼠標(biāo)指針離開元素

mouseout():鼠標(biāo)指針從元素上移開時(shí)

mousedown():鼠標(biāo)指針移動(dòng)到元素上方并按下鼠標(biāo)按鍵時(shí)

resize():當(dāng)調(diào)整當(dāng)前游覽器窗口大小時(shí)

pageX()

pageY()

<script type="text/javascript" src="jquery.min.js"></script>

<script type="text/javascript">

$(document).ready(function(){

$(document).mousemove(function(aa){

$('span').text('x: '+aa.pageX+'y: '+aa.pageY)

})

a=0

$(window).resize(function(){//調(diào)整窗口觸發(fā)

$('b').text(a++)

})

})


</script>

</body>

</html>


明白了解!

Notes de version

Entrées populaires