我正在使用lein cljsbuild,并希望找到一种在不刷新浏览器的情况下重新加载编译后的文件的方法。是否有一种内置的方法可以从我的浏览器连接的REPL中实现这一点?
我正在使用lein cljsbuild,并希望找到一种在不刷新浏览器的情况下重新加载编译后的文件的方法。是否有一种内置的方法可以从我的浏览器连接的REPL中实现这一点?
使用浏览器 REPL可以获得大部分你所需要的东西。来自该网站:
A browser-connected REPL works in much the same way as a normal REPL:
forms are read from the console, evaluated and return values are printed.
A major and useful difference from normal REPL usage is that
all side-effects occur in the browser.