layui列表悬浮自定义title

templet: function (d) {
    return "<div data-d='" + d.complaintContent + "' onmouseover='showTips(this)'>" + d.complaintContent + "</div>";
}

function showTips(t) {
    $ = layui.$;
    var row = "<span style='color: #0C0C0C'>" + $(t).attr('data-d') + "</span>"; //获取显示内容
    //小tips
    layer.tips(row, t, {
        tips: [1, '#f2f2f2'],
        maxWidth: 500
    })
}

相关文章:

  • 2022-12-23
  • 2021-11-19
  • 2021-09-23
  • 2021-04-18
  • 2021-08-20
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
  • 2022-12-23
相关资源
相似解决方案