Home > front end >  [with] how to use Ajax to dynamically loading data form
[with] how to use Ajax to dynamically loading data form

Time:10-05

Now I get to the back-end data with ajax, but according to the background data to generate different forms, also changes according to the background data table number,
Excuse me big to the thinking of how to move forward?

CodePudding user response:

3 & lt; head>
4 & lt; Meta charset="utf-8" & gt;
5 & lt; title>
6 & lt;/head>
7 & lt; Script SRC="https://bbs.csdn.net/topics/vue.js" & gt; & lt;/script>
8 & lt; body>
9 & lt; Div id="app" & gt;
10 & lt; P> {{list}} & lt;/p>
11.
12 & lt; P v - for="item in the list" & gt; {{item}} & lt;/p>
13
14 & lt; P v - for="(item, I) in the list" & gt; Index: {{I}} - each: {{item}} & lt;/p>
15 & lt;/div>
16 & lt;/body>
17 & lt;/html>
18 & lt; Script>
19 var=new vm Vue ({
El: 20 # 'app',
21 data: {
22 the list: [6]
23},
24 the methods: {
25
26}
27})
28 & lt;/script>

CodePudding user response:

It should be easy to understand

CodePudding user response:

If, as the use of the above said vue, that can refer to the UI, the following code example, copied in change, most have API is introduced at the bottom of the https://element.faas.ele.me/#/zh-CN/component/table
  •  Tags:  
  • Ajax
  • Related