Uncaught TypeError: Cannot read property 'get' of undefined in VueJs

前端 未结 5 756
猫巷女王i
猫巷女王i 2020-12-20 07:41

I have following code

JS

var vm = new Vue({
  el: \'#vue-in         


        
5条回答
  •  南笙
    南笙 (楼主)
    2020-12-20 08:40

    As you have no plugin for vue-resource your this.$http is undefined. To add Vue-resource on js-fiddle add https://cdn.jsdelivr.net/g/vue@2.0.0-rc.4,vue.resource@1.0.0 to the external scripts section.

提交回复
热议问题