/ @description:指定字符串溢出显示省略号 / exportconstgetSubStringSum=function(str,num){ letnewStr; if(str){ str=str+""; if(str.trim().length>num){ newStr=str.trim().substring(0,num)+"..."; }else{ newStr=str.trim(); } }else{ newStr=""; } returnnewStr; }

  cuH0sCTmy7E5   2023年11月02日   50   0   0 字符串省略号
  cuH0sCTmy7E5   2023年11月02日   34   0   0

<!-组件会在`currentTabComponent`改变时改变--> <componentv-bind:is="currentTabComponent"></component>

  cuH0sCTmy7E5   2023年11月02日   39   0   0 【】
关注 更多

空空如也 ~ ~

粉丝 更多

空空如也 ~ ~