问答详情
源自:3-5 云存储(2)

提示downloadFile不存在

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>)


提问者:林怀乐 2019-07-24 17:54

个回答

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

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