jquery中的事件e
$(".aaron1").mousemove(function(e) { ? ? ? ?$(this).find('p:last').html('移動的X位置:' + e.pageX) ? ?}) 其中funtion(e)中包含了什么信息
$(".aaron1").mousemove(function(e) { ? ? ? ?$(this).find('p:last').html('移動的X位置:' + e.pageX) ? ?}) 其中funtion(e)中包含了什么信息
2016-10-10
舉報
2016-10-10
e是一個參數(shù),e指你的鼠標,這里e.pageX指的是你鼠標移動的坐標
2016-10-10
e就是一個事件參數(shù),傳遞的就是你鼠標移動時的事件