1.引用`import fecha from “…/…/utils/date.js”,一直报错。
2.调试date.js发现module.export为undefined,不走第一条件句。
if (typeof module !== 'undefined' && module.exports) {
module.exports = fecha;
} else if (ty
1.引用`import fecha from “…/…/utils/date.js”,一直报错。
2.调试date.js发现module.export为undefined,不走第一条件句。
if (typeof module !== 'undefined' && module.exports) {
module.exports = fecha;
} else if (ty