$(document).on('mousemove', 'div.photo', function(event) { var $text='X: '+event.pageX+' || '+'Y: '+event.pageY; console.log($text) }); 查看完整描述