layui 列表文字鼠标经过显示全部信息

 {title: "商品名称", templet: "#goodTitle",align: "center", width: width * 0.1},
      var tip_index = 0;
        $(document).on('mouseover', '#goodTitleMsg', function(data){
            var details = data.currentTarget.lastChild.defaultValue;
            if(details!=""){
                tip_index =  layer.tips(""+details+"", ($(this)),{ tips: [3, '5CBA59'],time:0,time:0,area: ['200px']});
            }

        }).on('mouseleave', '#goodTitleMsg', function(){
            layer.close(tip_index);
        });

 

你可能感兴趣的:(layui)