vue、html、CSS前端字符超長截取
//過長字符顯示...
<!-- vue實作 -->
<a-tooltip placement="topLeft">
<template slot="title">
<span>{{value}}</span>
</template>
{{ value | ellipsis(length) }}
</a-tooltip>
<!--CSS實作-->
<!--white-space:nowrap; overflow:hidden; text-overflow:ellipsis;-->
//顯示字符五位之后的字符
str.substr(5,str.split("_")[0].length)
//顯示最后一個小數點之后的字符(加一不帶小數點)
str.substring(text.ruleFile.lastIndexOf(".") + 1)
//洗掉arry集合中指定屬性 uploadTime
delete arry.uploadTime
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/177077.html
標籤:Java相關
上一篇:eclipse
