var arr = [‘changedBy‘, ‘changedDate‘, ‘createdBy‘, ‘createdDate‘, ‘deleteFlag‘] let itemDate = arr.map(item => { let str = item.replace(/([A-Z])/g," $1") let value = str.substr(0,1).toUpperCase() + str.substr(1) return { name: item, width: 160, isShow: true, value: value } })
原链接: https://www.cnblogs.com/guozongzhang/p/10858327.html
原文地址:https://www.cnblogs.com/star-x/p/10901591.html
时间: 2024-10-10 15:30:32