clojurescript

    0熱度

    1回答

    似乎ClojureScript編譯器按字母順序編譯src中的文件。有沒有辦法讓main目標開始?我目前在我的項目中包含一個文件aaa_init.cljs,這些文件恰好可以讓我確保首先發生某些事情......但這種感覺像是一種尷尬的解決方案。 它來控制文件在這樣處理,我可以確保(enable-console-print!)印刷之前發生,並且我可以使用便利設施,如defonce,並重新幀dispatc

    1熱度

    2回答

    我有clojure格式的clojure數據。 [{:dt [2017 6 30], :cashflow 431782} {:dt [2018 6 30], :cashflow 452271} {:dt [2019 6 30], :cashflow 473785} {:dt [2020 6 30], :cashflow 496374}] 我想要上面的形式json的clojure數據。從cloju

    3熱度

    2回答

    我使用http請求一次從API中獲取數千個實體。作爲管道中的下一步,我想將它們全部鏟入數據庫中。 (->> ids (pmap fetch-entity) (pmap store-entity) (doall)) fetch-entity期望一個String ID,並嘗試使用HTTP請求來檢索一個實體,並且要麼返回Map或拋出(因爲例如超時)的異常。 store-

    2熱度

    2回答

    Figwheel顯示的代碼很好。但我必須刷新頁面才能看到任何更改。 Figwheel有什麼變化來顯示變化?是否有命令強制重繪,而不會丟失應用程序狀態? BTW:Chrome提供了禁用緩存真正文件時,文件被保存出現CLJS圖標。 (defn simple-example [] [ui/mui-theme-provider {:mui-theme (get-mui-theme

    2熱度

    1回答

    我想通過構建桌面應用程序來學習clojurescript。我正在使用的啓動配置如下: (def +name+ "visivo/desktop") (def +version+ "0.0.1-SNAPSHOPT") (def +description+ "Desktop application for visivo") (def +repository+ "https://gitlab.com

    2熱度

    1回答

    我試圖創建瑪奇朵(ClojureScript模板)的空白應用這個命令: lein new macchiato abc cd abc git init heroku create git add --all git commit -m "Initial" git push heroku master heroku run lein package 但應用程序崩潰。 我應該怎麼做免費

    3熱度

    1回答

    我剛學試劑Clojurescript,我只是遵循一些教程,但也許我錯過了什麼我有這樣的代碼爲國家 (defonce app-state (atom {:text "Hello Chestnut!" :click-count 0})) 和渲染視圖 (defn article [] [:div [:div "The atom" [:code "click-count"] " h

    2熱度

    1回答

    我寫電子應用與ClojureScript和得到這個怪異的行爲: (ns hello-world.core (:require [cljs.nodejs :as nodejs])) (nodejs/enable-util-print!) (def electron (nodejs/require "electron")) (def app (.-app electron))

    0熱度

    1回答

    1個項目可以做2個項目嗎? 基本上我想要做的是建立一個api server和static server,它使用共享.cljc代碼。 如果這是可行的,如何管理它的依賴,REPL以及如何罐子它,這樣如果我想在罈子裏api server -part我並不需要包括static server -part。 謝謝!

    0熱度

    1回答

    如果我設置了一個cond,其中匹配分支中的表達式調用(str),我得到ClassCastException。但是,如果我將str更改爲format,問題就會消失。 代碼: (defn begins-with [chr str] (cond (or (nil? str) (empty? str)) "Hey the string is empty!" (= (first