XXX is not a function
Posted liaojianwang
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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
}
以上是关于XXX is not a function的主要内容,如果未能解决你的问题,请参考以下文章