我正尝试在我的Play! scalajs应用程序中使用苏打日期时间。
Soda date time在客户端导入(没有任何错误)
"org.mdedetrich" %%% "soda-time" % "0.0.1-SNAPSHOT"但当我尝试使用它时,就像这样:
val dateTime = new org.joda.DateTime(new js.Date())我得到以下错误:
type DateTime is not a member of package org.joda我不知道我错过了什么..。
发布于 2016-11-14 14:46:10
我在GitHub中查看了soda-time的源代码,我认为DateTime在org.soda.time下,而不是org.soda下
我以前没有使用过soda-time,但是我在我的跨js和JVM项目中使用了scalajs-jsjoda。
https://stackoverflow.com/questions/40241252
复制相似问题