我正在尝试在 Clojurescript 中获取 DateString:new Date(1420971497471).toDateString();
我遇到了麻烦,因为(js/Date 1420971497471)
返回一个字符串,所以我不能调用.toDateString()
.
这是我的 Clojurescript 代码:
(.toDateString (js/Date 1420971497471))
// Uncaught TypeError: undefined is not a function