A
A
Alex Terechenko2020-07-09 14:36:34
Vue.js
Alex Terechenko, 2020-07-09 14:36:34

Is it possible to pass an array with vue js using an axios get request?

Is it possible to pass an array with vue js using an axios get request?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Arseny, 2020-07-09
Matytsyn @ArsenyMatytsyn

1. You take the usual form.
2. Enter multiple selects, checkboxes into it.
3. Watch how it works.
4. You realize that this is an array.
5. Put it into practice.

A
Alexander, 2020-07-09
@UPSA

Here I would like to answer: "Perhaps." Fat dot. And don't write anything else.
The better question is "How?".
Then they will write to you:
Documentation: https://github.com/axios/axios
You can see in it:

// Optionally the request above could also be done as
axios.get('/user', {
    params: {
      ID: 12345
    }
  })
  .then(function (response) {
    console.log(response);
  })
  .catch(function (error) {
    console.log(error);
  })
  .then(function () {
    // always executed
  });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question