freemeteor 2008-2-20 13:20
JS调用截取标题怎样不要省略号
原本dz的js调用截取过长标题末尾会有省略号,怎样去掉这三个点呢...
元素 2008-2-20 13:20
是说要根据设置截取字符但是不显示省略号?
)LM-DZ`n TW"P+A
api/javascript.php
wiy/sIdy
找到[code]$replace['{subject_nolink}'] = cutstr($value['subject'],($fnamelength ? ($maxlength - $value['fnamelength']) : $maxlength));[/code]改为[code]$replace['{subject_nolink}'] = cutstr($value['subject'],($fnamelength ? ($maxlength - $value['fnamelength']) : $maxlength),'');[/code]
freemeteor 2008-2-20 15:40
非常感谢!