没有合适的资源?快使用搜索试试~ 我知道了~
include:包含私有模块的 NodeJS 模块
共12个文件
js:7个
makefile:1个
json:1个
需积分: 8 0 下载量 51 浏览量
2021-06-01
19:36:06
上传
评论
收藏 4KB ZIP 举报
温馨提示
just_include ======================== 包含私有模块的 NodeJS 模块。 安装 npm install just_include --save 为此,请勿使用 VAR 调用! 然后它创建一个可在任何文件中使用的全局函数。 它也必须在主 JS 文件中启动。 用法 主文件 just_include = require('just_include')(__dirname); var helloWorld = just_include('helloWorld'); helloWorld(); main.js (如果模块不在'modules'文件夹中,我们可以指定一个自定义文件夹) just_include = require('just_include')(__dirname,'private') var helloWorld
资源推荐
资源详情
资源评论
收起资源包目录
include-master.zip (12个子文件)
include-master
.gitignore 18B
package.json 643B
Makefile 63B
.DS_Store 6KB
index.js 189B
README.md 979B
test
index.js 538B
modules
helloWorld.js 50B
Hello.js 23B
World.js 23B
B.js 37B
A.js 57B
共 12 条
- 1
资源评论
kudrei
- 粉丝: 37
- 资源: 4758
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功