已采納回答 / 謝成
1、項目的路徑盡量不要有中文名稱2、npm有時會比較慢,可以使用下代理:? ?
npm?install?request?--save?--registry=https://registry.npm.taobao.org
2019-06-07
講師回答 / 謝成
由于最近API有變化,需要在請求API的url后面跟一個apikey參數:電影列表API:http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=0&count=10電影詳情API:http://api.douban.com/v2/movie/subject/${event.movieid}?apikey=0df993c66c0c636e29ecbb5344252a4a
2019-06-05
講師回答 / 謝成
1、檢查movie.xml中是否自定義了屬性data-movieid="{{item.id}}"2、檢查movie.js中是否取到了點擊的當前電影的id3、檢查movie.js傳遞參數給comment.js的地方是否有問題
2019-06-05
已采納回答 / 謝成
API沒有問題,是你的參數拼接的不對`http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=${event.start}&count=${event.count}`
2019-06-05
講師回答 / 謝成
只要加了apikey這個參數,API是沒有問題的,遇到問題要先檢查是不是自己代碼的問題。電影列表API:http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=0&count=10電影詳情API:http://api.douban.com/v2/movie/subject/${event.movieid}?apikey=0df993c66c0c636e29ecbb534...
2019-06-04