站内搜索:
首页 >> 前端 >> 内容
filed中使用日期格式化无效

时间:2018/2/12 14:23:21

filed中使用日期格式化无效

需要指定该字段的类型,在DataSource 在进行数据类型指定

schema: {
                data: 'rows',
                total: 'total',
                model: {
                    id: "taskPaymentId",
                    fields: {
                        docDate:{type:"date"}
                    }
                }
            }

在column的字段中再使用format: “{0: yyyy-MM-dd}”

  • 上一篇:XMLHttpRequest中的数据类型-DOMString、Document、FormData、Blob、File、ArrayBuffer实例讲解
  • 下一篇:HTTP协议的相关知识点
  • 返回顶部