amis icon indicating copy to clipboard operation
amis copied to clipboard

datetime 为0 时,可否支持输出- 而不是1970

Open dayuliu opened this issue 6 years ago • 1 comments

datetime 为0 时,可否支持输出- 而不是1970 而我目前只能这么做 "tpl": "<% if (data.update_time == 0) { %>-<% }else{ %> <%= formatDate(data.update_time, format='YYYY-MM-DD HH:mm:ss', inputFormat='X') %> <% } %>",

dayuliu avatar Feb 26 '20 16:02 dayuliu

目前应该只能这样

RickCole21 avatar Aug 05 '20 12:08 RickCole21