问问Unexpected token, expected 报错的原因

问问Unexpected token, expected 报错的原因

问题描述:

问问报错原因Syntax Error: Unexpected token, expected , (53:44)

img

<!-- 不是单独写,上面data省略 -->
    mounted() {
      axios
            .get('HourDesc.json')
            .then(response =>this.$nextTick()
                    {console.log('1')})
    }
   

凑字 数凑字g数凑a字数凑d字

nextick用法 。


axios.get().then(res=>{
    this.nextick(()=>{
      console.log("1")
    });
    
  })

mounted() {
  axios
        .get('HourDesc.json')
        .then(response =>this.$nextTick(()
                {console.log('1')}))
}