XXX is not a function

在utils自定义了一个js,但是在其它js 使用import xxx from '../../XX'

调用的时候提示 xxx.get  is not a function,无法使用,

因为在自定义的js里面没有公开外部调用方法,如下:

module.exports = {
put: put,
get: get
}

 

posted @ 2019-05-21 14:25  健忘就忘吧  阅读(223)  评论(0编辑  收藏  举报