|
|
|
@ -1240,7 +1240,7 @@ function expand_reply(container,btnid){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//by yk 列表描述将文字和起来去掉空格多于100就显示省略号
|
|
|
|
|
function description_showwords_ellipsis(id){
|
|
|
|
|
function description_showwords_ellipsis(id,num){
|
|
|
|
|
var str = "";
|
|
|
|
|
$("#intro_content_"+id).each(function () {
|
|
|
|
|
str = str + $(this).text();
|
|
|
|
@ -1249,8 +1249,8 @@ function description_showwords_ellipsis(id){
|
|
|
|
|
//去掉空格
|
|
|
|
|
str = str.replace(/\s/gi,'');
|
|
|
|
|
|
|
|
|
|
if(str.length > 100){
|
|
|
|
|
str = str.substring(0,100)+"...";
|
|
|
|
|
if(str.length > num){
|
|
|
|
|
str = str.substring(0,num)+"...";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("#intro_content_"+id).html(str);
|
|
|
|
|