您如何在ES6中进行管理?

    const withResponsiveness = require('../helpers/withResponsiveness.js').default;
    const ResponsiveLegend = withResponsiveness(Legend);

最佳答案

只需使用import

import withResponsiveness from '../helpers/withResponsiveness.js';

const ResponsiveLegend = withResponsiveness(Legend);

10-08 04:29