【发布时间】:2017-10-20 11:26:21
【问题描述】:
我通过create-react-app快速创建了一个react app,
当我在 componentDidMount() 中调用 new ImageCapture 时
componentDidMount() {
imageCapture = new ImageCapture(track);
}
显示
ReferenceError: imageCapture 未定义
不知道是 eslint 阻止了我的通话还是别的什么
我已经用普通的 JS 测试了这个函数,它可以工作。谢谢大家。
【问题讨论】:
标签: javascript reactjs ecmascript-6