- such as
doT.js
, how can I use it withrequire.js
? Andwebpack
? Introduced directly inhtml
? -
Must the module defined by
require.js
have areturn
, for example, I just doalert (2)
inmain.js
require (["math"])
, is it necessary to wrap it with a function and thenreturn
out?