
json
秋夫人
将军赶路不追野兔
展开
-
Json转换工具类FastJsonUtil
pom.xml <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.44</version> </dependency>FastJsonUtil工具类package com.common原创 2021-01-07 12:47:35 · 1025 阅读 · 0 评论 -
js 处理Json 时间带T 时间格式
开发中有时候需要从服务器端返回json格式的数据,在后台代码中如果有DateTime类型的数据使用系统自带的工具类序列化后将得到一个很长的数字表示日期数据,如下所示:复制代码代码如下://设置服务器响应的结果为纯文本格式 context.Response.ContentType = "text/plain"; //学生对转载 2016-09-02 15:08:31 · 10310 阅读 · 0 评论