每当我在Clojurescript中打印cljs.core/UUID时,我看到:
#uuid "a7fc5304-010b-41fd-9e4e-4498cfb0e206"
Run Code Online (Sandbox Code Playgroud)
:当我想看到的只是:
"a7fc5304-010b-41fd-9e4e-4498cfb0e206"
Run Code Online (Sandbox Code Playgroud)
:我怎样才能访问Clojurescript UUID的字符串部分?
只需使用str:
(str #uuid "a7fc5304-010b-41fd-9e4e-4498cfb0e206")
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
626 次 |
| 最近记录: |