import 引入方法時報錯:TypeError: Object(...) is not a function的解決方法

報錯: 報錯時的引用寫法爲: import getValue from './getValue'; 不報錯的寫法爲: import {getValue } from './getValue';   getValue.js文件中的內容爲: export const getValue = (name,url) =>{ return ***; }
相關文章
相關標籤/搜索