在一个针对 nodejs 的 ClojureScript 项目中,使用以下通用语句的幕后到底发生了什么?
(node/enable-util-print!)
最佳答案
如果你check the source out你会看到它定义了一些动态变量,然后用于打印到控制台,例如通过string-print
和其他功能。
没有它,base definition of *print-fn*
抛出错误,因为您需要设置适合您运行环境的内容。
关于javascript - (node/enable-util-print!) 是做什么的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34940202/