課程
/前端開發
/小程序
/輕松入門微信小程序與云開發
cloud is not defined是哪里出了問題
2020-07-08
源自:輕松入門微信小程序與云開發
正在回答
代碼中沒有初始化cloud,所以不能調用cloud.init()。
既然已經開始做云開發的項目了,建議可以學習一下云開發的實戰課程:?https://coding.imooc.com/class/373.html
app.json中添加
"cloud":?true
頁面js文件中添加
wx.cloud.init({env:"云環境ID"})
舉報
深入淺出微信小程序核心基礎與云開發,使你掌握小程序開發必備技能。
1 回答cloud is not defined
2 回答Uncaught (in promise) ReferenceError: Data is not defined 不知道哪里有問題了
1 回答promise is not defined
1 回答Error: errCode: -404011 cloud function execution error | errMsg: cloud.callFunction:fail requestID 6aa6b075-901b-11ea-8f79-525400149ac0, cloud function service error code -504002, error message rp is not defined ReferenceError: rp is not defined
2 回答每日一問request is not defined?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2020-07-09
代碼中沒有初始化cloud,所以不能調用cloud.init()。
既然已經開始做云開發的項目了,建議可以學習一下云開發的實戰課程:?https://coding.imooc.com/class/373.html
2024-02-22
app.json中添加
"cloud":?true
頁面js文件中添加
wx.cloud.init({env:"云環境ID"})