...
1. require("xxx").resolve(); //获取绝对路经
2. require是在node_modules里一级级找;
3. export.someThing = function(){
};
等价于:
modules.exports.someThing = function(){
};
...
2022-08-16 20:35:08
...
1. require("xxx").resolve(); //获取绝对路经
2. require是在node_modules里一级级找;
3. export.someThing = function(){
};
等价于:
modules.exports.someThing = function(){
};
...