課程
/前端開發
/小程序
/輕松入門微信小程序與云開發
一直處于加載中,無法獲取list
2019-05-14
源自:輕松入門微信小程序與云開發
正在回答
應該是你的movielist沒有獲取到數據啊Cannot read property 'length' of undefined;這個問題是你length前面的數組是一個undefined沒有取到值
先看下network里請求的響應結果是什么,在請求API的url后面跟一個apikey參數:
http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=0&count=10
好的老師,已經加上了?,F在報“sdk uncaught third Error”,調整基礎庫無效
舉報
深入淺出微信小程序核心基礎與云開發,使你掌握小程序開發必備技能。
1 回答Cannot read property 'length' of undefined
1 回答Cannot read property 'length' of undefined;
1 回答Cannot read property 'concat' of undefined
3 回答Cannot read property 'concat' of undefined
3 回答為什么會顯示這個length屬性不存在呢 TypeError: Cannot read property 'length' of undefined
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-05-14
應該是你的movielist沒有獲取到數據啊
Cannot read property 'length' of undefined;
這個問題是你length前面的數組是一個undefined沒有取到值
2019-05-14
先看下network里請求的響應結果是什么,在請求API的url后面跟一個apikey參數:
http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=0&count=10
2019-05-14
好的老師,已經加上了?,F在報“sdk uncaught third Error”,調整基礎庫無效