问一个vue调试问题
粉丝福利 : 关注VUE中文社区公众号,回复视频领取粉丝福利
最近无事想学学vue,然后在网上下了demo,看了下代码 其中有这么一段 这个段代码是在.vue 的script标签里
mounted: function () {
this.$http.jsonp('https://api.douban.com/v2/movie/in_theaters?start=0&count=1')
.then(function (response) {
console.log(response) //这里我想debug输出一下,为什么并没有输出呢,我是用 npm run dev 命令运行的,控制台里并没有log输出啊
this.guodu = false
this.in_theaters_data = response
this.in_theaters_data_body = response.body
this.in_theaters_data_body_subjects = response.body.subjects
})
.catch(function (response) {
console.log(response)
})
}