- 博客(2)
- 收藏
- 关注
原创 千分位,保留两位小数的金额格式化
千分位,保留两位小数的金额格式化1、thousandth.jsconst MoneyTest = /((^[1-9]\d*)|^0)(\.\d{0,2}){0,1}$/// 金额添加千分位export const comdify = function(n) { if (!n) return n n = String(n) const str = n.split('.') const re = /\d{1,3}(?=(\d{3})+$)/g const n1 = str[0].re
2021-09-13 10:21:56 468
原创 el-table使用span-method合并行
el-table使用span-method合并行1、html页面<el-table height="650" :data="skuListInfo" ref="tableData" border :span-method="objectSpanMethod" :header-cell-style="{background:'#deebff',color:'#606266',fontWeight:'bold',textAlign:'center'}" highlight-current-row>
2021-09-13 10:02:45 331
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人