标题过长,用省略号显示

标题过长,用省略号显示
var subtext = '数据来自[' + datainfo[5] + ']实时数据';
if (subtext.length > 25)
{
subtext = subtext.substring(0 , 24) + "……";

}
option1.title.subtext = subtext;

posted on   七七2020  阅读(169)  评论(0编辑  收藏  举报

努力加载评论中...

导航

点击右上角即可分享
微信分享提示