前端有时候会接受时间戳,里面可能会带T,用这个可以有效去除带的T
<template slot-scope='scope'> {{scope.row.createTime.toLocaleString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')}} </template>
前端有时候会接受时间戳,里面可能会带T,用这个可以有效去除带的T
<template slot-scope='scope'> {{scope.row.createTime.toLocaleString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')}} </template>