export一个箭头函数 export const test = () => { // ... } export普通函数 export function test () { // ... } 参考文章 js export和箭头函数的使用