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

jQuery事件小結

オリジナル 2018-11-18 13:38:20 231
サマリー:<!DOCTYPE html><html><head> <title>jQuery事件</title> <script type="text/javascript" src="js/jquery-3-3.1.min.js"></script> <script type=

<!DOCTYPE html>

<html>

<head>

<title>jQuery事件</title>

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

<script type="text/javascript">


</script>

</head>

<body>

<script type="text/javascript">

// mouseover() 當鼠標指針位于元素上方時會發(fā) mouseover事件

// mouseenter() 當鼠標指針穿過元素時會發(fā)生 mouseenter事件

// mousemove() 當鼠標在指定元素中移動時,就會發(fā)生該事件

// mouseleave() 當鼠標指針離開元素時

// mouseout() 當鼠標指針從元素移開時

// mousedown() 當鼠標指針移動到元素上方并按下鼠標按鍵時

// mouseup() 當在元素上松開鼠標按鍵時

// resize() 當調(diào)整當前瀏覽器窗口大小時

// pageX() 屬性是鼠標指釷的位置,相對于文檔的左邊緣

// pageY() 屬性是鼠標指針的位置,相對于文檔的上邊緣

$(document).ready(function(){

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

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

})


})

</script>


<div>

當前鼠標的位置:<span> </span>

</div>

</body>

</html>

我測試到,沒有顯示鼠標位置顯示 

手記を発表する

人気のある見出し語