Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我 ClojureScript 我可以在ns声明中做一些事情,比如:
(ns demo2 (:require [goog.ui.Textarea :as text-area] ) )
: 但 :
(require '[goog.ui.Textarea :as text-area])
: 不行。有谁知道我做错了什么?
ClojureScript 中没有(需要)定义。
如关于命名空间的wiki 页面所述:
您必须使用 :as 形式的 :require