Article From:https://www.cnblogs.com/caozengling/p/9215804.html
//Rule tips
var tip_index = 0;
$(document).on('mouseenter', '.layui-badge-rim', function(){
tip_index=layer.tips($('.layer_notice').html(), '.layui-badge-rim', {
tips: [4, '#D8D8D8'],
area: ['auto', 'auto'],
time: 50000
});
}).on('mouseleave', '.layui-badge-rim', function(){
layer.close(tip_index);
});

Leave a Reply

Your email address will not be published. Required fields are marked *