为什么总是报错,fetch is not a function?
const url = ‘https://api.douban.com/v2/movie/in_theaters’
fetch(url).then(function(response) {
return response.json();
}).then(function (data) {
that.setData({
filmlist: data.subjects
})
})
哪里错了呀?
fetch使用有什么需要注意的吗?