不跳轉啊老師 幫看下啊 兩種方法都試了,哪怕跳個空也行啊
WXML里面:
<button bind-tap="gotoComment" data-movieid="{{item.id}}" class='movie-commnt'>評價</button>
JS里面:
gotoComment: function (event) {
wx.navigateTo({
url: '../comment/comment?movieid=' + event.target.dataset.movieid,
})
// ({
// ? url: ../comment/comment?movieid=${event.target.dataset.movieid}`,
// });
},
2019-05-23
bind-tap改成bindtap試試
2019-05-23
最近豆瓣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-11-02
為什么我的也傳不了
2019-05-23
對對對,謝謝救命恩人