小记录----元素添加title属性 $("table.table th div.th-inner").each(function(){ $(this).attr("title", $(this).text()); })