var oldTitle = '触发事件';$('td').bind('mouseover mouseout mousemove', function(event) {var left = event.pageX;var top = event.pageY;var ele = event.target;var title = ele.title;var type = event.originalEvent.type;if (type == 'mouseover') {oldTitle = title;ele.title = '';console.log(title);if (title.length != 0) {var showEle = $('', {text: title,class: 'showTitleBox'}).css({position: 'absolute',top: top + 20,left: left,border: '1px solid #50B7CA',// 边框borderRadius: '5px', // 边框圆角background: "#50B7CA", // 背景色fontFamily: 'SimHei', // 字体fontSize: '15px', // 字体大小color:'white'})showEle.appendTo('body');}}else if (type == 'mouseout') {ele.title = oldTitle;$('.showTitleBox').remove();} else if (type == 'mousemove') {$('.showTitleBox').css({top: top + 10,left: left})}})