在一个js中使用require引用另一个js文件报错?帮忙看一下怎么回事?
发布于 5 年前 作者 tao92 4501 次浏览 来自 问答

如题

报错内容为:

Cannot read property ‘hot’ of undefined;at “index/index” page lifeCycleMethod onLoad function

TypeError: Cannot read property ‘hot’ of undefined

代码片段:https://developers.weixin.qq.com/s/APVcSmmJ7Id3

1 回复

module.exports = {

  

函数名

(参数) {

    return 函数名(参数)

  }

}

有写module.exports 吗

回到顶部