使用打嗝渲染异步脚本标签
Render async script tag with hiccup
如何在 hiccup 中呈现异步脚本标记?
<script src="demo_async.js" async></script>
我认为你应该将其编码为
(use 'hiccup.core)
(html
[:script {:src "demo_async.js" :async "async"} ] )
=> <script src="demo_async.js" async="async" ></script>
如何在 hiccup 中呈现异步脚本标记?
<script src="demo_async.js" async></script>
我认为你应该将其编码为
(use 'hiccup.core)
(html
[:script {:src "demo_async.js" :async "async"} ] )
=> <script src="demo_async.js" async="async" ></script>