@ -210,14 +210,14 @@ export class LeftDomainComponent implements OnInit {
//是否换行
isLineFeed(str: string):boolean {
if (str) {
let strlen = 0;
for (var i = 0;i < str.length; i++) {
if(str.charCodeAt(i) > 255) //如果是汉字,则字符串长度加2
strlen += 2;
else
strlen++;
}
if (strlen >= 16) {
if (strlen > 17) {
return false
} else {
return true