我有以下声明:
exports.users = require("./users.js");如何使用EcmaScript6中定义的导入/导出表示法在语句中转换?
发布于 2016-06-17 12:21:38
您可以使用
export { default as users } from './users';
// ^^^^^^^ or whatever the module exportshttps://stackoverflow.com/questions/37881366
复制相似问题