提示downloadFile不存在

来源:3-5 云存储(2)

林怀乐

2019-07-24 17:54

VM854:1 thirdScriptError

Cannot read property 'downloadFile' of undefined; [Component] Event Handler Error @ pages/cloud/cloud#bound downloadfile

TypeError: Cannot read property 'downloadFile' of undefined

    at c.downloadfile (http://127.0.0.1:55507/appservice/pages/cloud/cloud.js:98:15)

    at Object.o.safeCallback (http://127.0.0.1:55507/appservice/__dev__/WAService.js:15:2390)

    at http://127.0.0.1:55507/appservice/__dev__/WAService.js:17:17303

    at p (http://127.0.0.1:55507/appservice/__dev__/WAService.js:17:19574)

    at http://127.0.0.1:55507/appservice/__dev__/WAService.js:17:18875

    at n (http://127.0.0.1:55507/appservice/__dev__/WAService.js:6:8644)

    at n (http://127.0.0.1:55507/appservice/appservice?t=1563962013619:1099:27790)

    at e.exports.<anonymous> (http://127.0.0.1:55507/appservice/appservice?t=1563962013619:1099:28132)

    at http://127.0.0.1:55507/appservice/appservice?t=1563962013619:1099:13287

    at Array.forEach (<anonymous>)


写回答 关注

1回答

  • 谢成
    2019-07-26 15:33:17

    在文件pages/cloud/cloud第98行代码,有一句是undefined.downloadFile,检查下这个undefined代表的是什么,看下为什么会是undefined

轻松入门微信小程序与云开发

深入浅出微信小程序核心基础与云开发,使你掌握小程序开发必备技能。

64548 学习 · 1742 问题

查看课程

相似问题