注册日期:2023-11-02
上次登录日期:2023-11-02
个人简介
/ @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; }
<!-组件会在`currentTabComponent`改变时改变--> <componentv-bind:is="currentTabComponent"></component>
空空如也 ~ ~