$(function() {
$('table tr td:not(:last-child)').mouseover(function() {
val = $(this).text().trim();
$(this).attr({title:val});
})
});
获取非最后一列td值并将title设为该值
最新推荐文章于 2022-12-22 14:33:02 发布
$(function() {
$('table tr td:not(:last-child)').mouseover(function() {
val = $(this).text().trim();
$(this).attr({title:val});
})
});