代码中export const 导出的内容export default 再导出一遍,这种写法规范么?
export const a=0;
export const b=0;
export default {
a,
b
};
代码中export const 导出的内容export default 再导出一遍,这种写法规范么?
export const a=0;
export const b=0;
export default {
a,
b
};
可以同时用,但导出两遍真的没必要,引入可以像楼上一样。