js限制显示字数 FantJ 2018-03-28 289 阅读1分钟 function limitWords(txt){ var str = txt; str = str.substr(0,200) + '...'; return str; }