我试图制作一个GWT应用程序.然后在客户端和共享端使用SimpleDateFormat类时出现了一些错误.
[ERROR] [gwtfirst] Line 381: No source code is available for type java.text.SimpleDateFormat; did you forget to inherit a required module?
Run Code Online (Sandbox Code Playgroud)
以下是我在客户端的代码:
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Window.alert(sdf.format(usersList.get(30).getCreatedate()));
Run Code Online (Sandbox Code Playgroud)
但我可以在服务器端使用SimpleDateFormat ...我想知道我是否不能在客户端或共享端使用SimpleDateFormat?
| 归档时间: |
|
| 查看次数: |
9275 次 |
| 最近记录: |