echat3没有数据的时候,如何设置文字提示:“没有数据”

functon grit(){
var opt={
  title:{
     show:false,//日常时设置为false,隐藏没有数据的文字提示
     textStyle:{
         color:'#bcbcbc'
     }
     text:'没有数据',
     left:'center',
     top:'center'
  }
}
  if(dataY.length===0){
     opt.title.show=true//没有数据时,显示title提示
  }
  return opt;
}
//

若是对你有帮助,请点赞!!!我喜欢赞!!!javascript

相关文章
相关标签/搜索