【发布时间】:2025-11-30 14:25:01
【问题描述】:
我需要 export 两个函数和 get 到这两个函数参数 arg1 的节点模块,我尝试以下我得到错误,我是什么这里做错了吗?
更新
模块内部有两个方法
1. I need to expose it outside and to call it explicit from other
module with parameter
喜欢
require('./controller/module')(functionName1)(parameter);
- 这个模块中的另一个函数(functionName2)我需要用两个参数显式调用它,我应该怎么做?
【问题讨论】:
标签: node.js module amd node-modules