Does Vue.JS work with AJAX http calls?

前端 未结 3 584
情书的邮戳
情书的邮戳 2020-11-30 16:12

I am trying to do the following from my HTML:

var vm = new Vue({
      el: \'#loginContent\',
      data: {
        main_message: \'Login\',
        isLogged         


        
3条回答
  •  攒了一身酷
    2020-11-30 16:26

    You might want to take a look at axios. I used $.ajax and got it working, but found axios and prefer axios over the ajax library.

提交回复
热议问题