如何使用GWT解析ASP.NET JSON日期格式 [英] How to parse ASP.NET JSON Date format with GWT
本文介绍了如何使用GWT解析ASP.NET JSON日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
ASP.NET JSON将DateTime转换为以下格式/ Date(1251877601000)/。帮助解析这个字符串到java(GWT)Date对象中。
ASP.NET JSON serialize DateTime to the following format "/Date(1251877601000)/". Pls, help parse this string into the java(GWT) Date object.
此时,我遇到的解决方法是使用正则表达式进行解析,不能通过JSNI推动。
At this time the solution I came with is parsing with regex, extract long.. but then I cannot push long through JSNI.
推荐答案
不能请求生成日期作为字符串?这将是最简单的解决方案。
Cannot You ask to produce date as string? That will be the simplest solution.
这篇关于如何使用GWT解析ASP.NET JSON日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文