| step1: 模版加载结束里写如下代码:
 
 复制代码$(\"td[title^=cut]\").each(function()
{
    var str = $(this).attr(\'title\');
   var length = parseInt(str.split(\":\")[1]);  
        if($(this).text().length > length){
                $(this).attr(\'title\',$(this).text());
                $(this).text($(this).text().substring(0,length)+\'...\');
        }
        else
        $(this).removeAttr(\'title\');
})
 
 step2:
 
 
 
 搞定
 
 
 |