var tip_index = 0; $(document).on('mouseenter', '.layer_hover', function(){ var words = $(this).data('words'); tip_index = layer.tips(words, '.layer_hover', {time: 0}); }).on('mouseleave', '.layer_hover', function(){ layer.close(tip_index); });
var tip_index = 0; $(document).on('mouseenter', '.layer_hover', function(){ var words = $(this).data('words'); tip_index = layer.tips(words, '.layer_hover', {time: 0}); }).on('mouseleave', '.layer_hover', function(){ layer.close(tip_index); });
来源:https://www.cnblogs.com/pansidong/p/11598399.html