我试图在 Clojurescript 中获取 DateString:new Date(1420971497471).toDateString();
我遇到了麻烦,因为 (js/Date 1420971497471)
返回一个字符串,所以我不能调用 .toDateString()
。
这是我的 Clojurescript 代码:
(.toDateString (js/Date 1420971497471))
// Uncaught TypeError: undefined is not a function
最佳答案
(.toDateString (js/Date. 1420971497471))
关于javascript - 如何在 Clojurescript 中的 Date 对象上调用 .toDateString(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27889976/